28 lines
714 B
C#
28 lines
714 B
C#
using Project.Application.DTOs.Incoming;
|
|
using Project.Application.DTOs.Outgoing;
|
|
using Project.Domain.Entities;
|
|
|
|
namespace Project.Application.Interfaces
|
|
{
|
|
public interface IProductService
|
|
{
|
|
//CREATE
|
|
Task<Product?> AddProductAsync(CreatingProductDto creatingProductDto);
|
|
|
|
// READ ALL
|
|
Task<IEnumerable<ReadingProductDto>> GetAllAsync();
|
|
|
|
// READ BY ID
|
|
Task<ReadingProductDto> GetByIdAsync(int id);
|
|
|
|
// READ BY NAME
|
|
Task<ReadingProductDto> GetByNameAsync(string name);
|
|
|
|
// UPDATE
|
|
Task<bool> UpdateProductAsync(UpdatingProductDto updatingProductDto);
|
|
|
|
// DELETE
|
|
Task<bool> DeleteProductAsync(int id);
|
|
}
|
|
}
|