models added, roles endpoints in media controller added
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace WatchIt.Common.Model.Roles;
|
||||
|
||||
public class ActorRolePersonQueryParameters : ActorRoleQueryParameters
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
[FromQuery(Name = "media_id")]
|
||||
public long? MediaId { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region PRIVATE METHODS
|
||||
|
||||
protected override bool IsMeetingConditions(ActorRoleResponse item) =>
|
||||
(
|
||||
base.IsMeetingConditions(item)
|
||||
&&
|
||||
Test(item.MediaId, MediaId)
|
||||
);
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user