Project/Project.Application/Interfaces/ICategoryService.cs
2024-06-28 15:15:15 +02:00

28 lines
727 B
C#

using Project.Application.DTOs.Incoming;
using Project.Application.DTOs.Outgoing;
using Project.Domain.Entities;
namespace Project.Application.Interfaces
{
public interface ICategoryService
{
// CREATE
Task<Category?> AddCategoryAsync(CreatingCategoryDto creatingCategoryDto);
// READ ALL
Task<IEnumerable<ReadingCategoryDto>> GetAllAsync();
// READ BY ID
Task<ReadingCategoryDto> GetByIdAsync(int id);
// READ BY NAME
Task<ReadingCategoryDto> GetByNameAsync(string name);
// UPDATE
Task<bool> UpdateCategoryAsync(UpdatingCategoryDto updatingCategoryDto);
// DELETE
Task<bool> DeleteCategoryAsync(int id);
}
}