2024-04-27 22:36:16 +02:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2024-07-03 22:18:32 +02:00
|
|
|
|
using WatchIt.Common.Query;
|
2024-04-27 22:36:16 +02:00
|
|
|
|
|
|
|
|
|
|
namespace WatchIt.Common.Model.Genres;
|
|
|
|
|
|
|
|
|
|
|
|
public class GenreQueryParameters : QueryParameters<GenreResponse>
|
|
|
|
|
|
{
|
|
|
|
|
|
#region PROPERTIES
|
|
|
|
|
|
|
|
|
|
|
|
[FromQuery(Name = "name")]
|
|
|
|
|
|
public string? Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-02 16:09:11 +02:00
|
|
|
|
#region PRIVATE METHODS
|
2024-04-27 22:36:16 +02:00
|
|
|
|
|
2024-10-02 16:09:11 +02:00
|
|
|
|
protected override bool IsMeetingConditions(GenreResponse item) =>
|
2024-04-27 22:36:16 +02:00
|
|
|
|
(
|
2024-09-29 23:00:32 +02:00
|
|
|
|
TestStringWithRegex(item.Name, Name)
|
2024-04-27 22:36:16 +02:00
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|