roles controller added

This commit is contained in:
2024-10-06 00:43:09 +02:00
Unverified
parent 70d47b3aea
commit 21098f1664
14 changed files with 401 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
using Microsoft.AspNetCore.Mvc;
using WatchIt.Common.Query;
namespace WatchIt.Common.Model.Roles;
public class RoleQueryParameters : QueryParameters<RoleResponse>
{
#region PROPERTIES
[FromQuery(Name = "name")]
public string? Name { get; set; }
#endregion
#region PRIVATE METHODS
protected override bool IsMeetingConditions(RoleResponse item) => TestStringWithRegex(item.Name, Name);
#endregion
}