Set up multi-project solution with DbFirst API, Application, Domain, and Infrastructure layers. Implemented database-first EF Core for the Catalog entity, including domain, DTOs, repository, service, and controller. Configured AutoMapper, DI, Swagger, and project settings. Added .gitattributes and initial configuration files.
11 lines
535 B
C#
11 lines
535 B
C#
namespace DbFirst.Application.Catalogs;
|
|
|
|
public interface ICatalogService
|
|
{
|
|
Task<List<CatalogDto>> GetAllAsync(CancellationToken cancellationToken = default);
|
|
Task<CatalogDto?> GetByIdAsync(int id, CancellationToken cancellationToken = default);
|
|
Task<CatalogDto> CreateAsync(CatalogDto dto, CancellationToken cancellationToken = default);
|
|
Task<bool> UpdateAsync(int id, CatalogDto dto, CancellationToken cancellationToken = default);
|
|
Task<bool> DeleteAsync(int id, CancellationToken cancellationToken = default);
|
|
}
|