2024-10-05 09:12:28 +02:00
|
|
|
using WatchIt.Common.Model.Genders;
|
|
|
|
|
|
2024-10-27 22:09:46 +01:00
|
|
|
namespace WatchIt.Website.Services.Client.Genders;
|
2024-10-05 09:12:28 +02:00
|
|
|
|
2024-10-27 22:09:46 +01:00
|
|
|
public interface IGendersClientService
|
2024-10-05 09:12:28 +02:00
|
|
|
{
|
|
|
|
|
Task GetAllGenders(GenderQueryParameters? query = null, Action<IEnumerable<GenderResponse>>? successAction = null);
|
|
|
|
|
Task GetGender(long id, Action<GenderResponse>? successAction = null, Action? notFoundAction = null);
|
|
|
|
|
Task PostGender(GenderRequest data, Action<GenderResponse>? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null);
|
|
|
|
|
Task DeleteGender(long id, Action? successAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null);
|
|
|
|
|
}
|