models added, roles endpoints in media controller added

This commit is contained in:
2024-10-06 14:51:58 +02:00
Unverified
parent b86c021b9b
commit 6cae764d1d
19 changed files with 537 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Mvc;
namespace WatchIt.Common.Model.Roles;
public class CreatorRoleMediaQueryParameters : CreatorRoleQueryParameters
{
#region PROPERTIES
[FromQuery(Name = "person_id")]
public long? PersonId { get; set; }
#endregion
#region PRIVATE METHODS
protected override bool IsMeetingConditions(CreatorRoleResponse item) =>
(
base.IsMeetingConditions(item)
&&
Test(item.PersonId, PersonId)
);
#endregion
}