Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreatedServicesInterface #28

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Inflow.Domain/Intefaces/Services/ICategoryService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Inflow.Domain.DTOs.Category;
using Inflow.Domain.ResourceParameters;
using Inflow.Domain.Responses;

namespace Inflow.Domain.Interfaces.Services
{
public interface ICategoryService
{
IEnumerable<CategoryDto> GetAllCategories();
GetBaseResponse<CategoryDto> GetCategories(CategoryResourceParameters categoryResourceParameters);
CategoryDto? GetCategoryById(int id);
CategoryDto CreateCategory(CategoryForCreateDto categoryToCreate);
CategoryDto UpdateCategory(CategoryForUpdateDto categoryToUpdate);
void DeleteCategory(int id);
}
}
17 changes: 17 additions & 0 deletions Inflow.Domain/Intefaces/Services/ICustomerService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Inflow.Domain.DTOs.Customer;
using Inflow.Domain.Pagniation;
using Inflow.Domain.ResourceParameters;
using Inflow.Domain.Responses;

namespace Inflow.Domain.Interfaces.Services
{
public interface ICustomerService
{
IEnumerable<CustomerDto> GetCustomers();
GetBaseResponse<CustomerDto> GetCustomers(CustomerResourceParameters customerResourceParameters);
CustomerDto? GetCustomerById(int id);
CustomerDto CreateCustomer(CustomerForCreateDto customerToCreate);
CustomerDto UpdateCustomer(CustomerForUpdateDto customerToUpdate);
void DeleteCustomer(int id);
}
}
9 changes: 9 additions & 0 deletions Inflow.Domain/Intefaces/Services/IDashboardService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Inflow.Domain.DTOs.Dashboard;

namespace Inflow.Domain.Interfaces.Services
{
public interface IDashboardService
{
DashboardDto GetDashboard();
}
}
17 changes: 17 additions & 0 deletions Inflow.Domain/Intefaces/Services/IProductService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Inflow.Domain.DTOs.Product;
using Inflow.Domain.Pagniation;
using Inflow.Domain.Responses;
using Inflow.ResourceParameters;

namespace Inflow.Domain.Interfaces.Services
{
public interface IProductService
{
IEnumerable<ProductDto> GetAllProducts();
GetBaseResponse<ProductDto> GetProducts(ProductResourceParameters productResourceParameters);
ProductDto? GetProductById(int id);
ProductDto CreateProduct(ProductForCreateDto productToCreate);
void UpdateProduct(ProductForUpdateDto productToUpdate);
void DeleteProduct(int id);
}
}
24 changes: 24 additions & 0 deletions Inflow.Domain/Intefaces/Services/ISaleItemService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using Inflow.Domain.DTOs.Category;
using Inflow.Domain.DTOs.SaleItem;
using Inflow.Domain.Pagniation;
using Inflow.Domain.ResourceParameters;
using Inflow.Domain.Responses;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Inflow.Domain.Interfaces.Services
{
public interface ISaleItemService
{
IEnumerable<SaleItemDto> GetAllSaleItems();
IEnumerable<SaleItemDto> GetSalesSaleItems(int salesId);
GetBaseResponse<SaleItemDto> GetSaleItems(SaleItemResourceParameters saleItemResourceParameters);
SaleItemDto? GetSaleItemById(int id);
SaleItemDto CreateSaleItem(SaleItemForCreateDto saleItemToCreate);
void UpdateSaleItem(SaleItemForUpdateDto saleItemToUpdate);
void DeleteSaleItem(int id);
}
}
18 changes: 18 additions & 0 deletions Inflow.Domain/Intefaces/Services/ISaleService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Inflow.Domain.DTOs.Sale;
using Inflow.Domain.Pagniation;
using Inflow.Domain.ResourceParameters;
using Inflow.Domain.Responses;

namespace Inflow.Domain.Interfaces.Services
{
public interface ISaleService
{
IEnumerable<SaleDto> GetAllSales();
IEnumerable<SaleDto> GetCustomersSale(int customersId);
GetBaseResponse<SaleDto> GetSales(SaleResourceParameters saleResourceParameters);
SaleDto? GetSaleById(int id);
SaleDto CreateSale(SaleForCreateDto saleToCreate);
void UpdateSale(SaleForUpdateDto saleToUpdate);
void DeleteSale(int id);
}
}
17 changes: 17 additions & 0 deletions Inflow.Domain/Intefaces/Services/ISupplierService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Inflow.Domain.DTOs.Supplier;
using Inflow.Domain.Pagniation;
using Inflow.Domain.ResourceParameters;
using Inflow.Domain.Responses;

namespace Inflow.Domain.Interfaces.Services
{
public interface ISupplierService
{
IEnumerable<SupplierDto> GetAllSuppliers();
GetBaseResponse<SupplierDto> GetSuppliers(SupplierResourceParameters supplierResourceParameters);
SupplierDto? GetSupplierById(int id);
SupplierDto CreateSupplier(SupplierForCreateDto supplierToCreate);
SupplierDto UpdateSupplier(SupplierForUpdateDto supplierToUpdate);
void DeleteSupplier(int id);
}
}
17 changes: 17 additions & 0 deletions Inflow.Domain/Intefaces/Services/ISupplyItemService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Inflow.Domain.DTOs.SupplyItem;
using Inflow.Domain.Pagniation;
using Inflow.Domain.ResourceParameters;
using Inflow.Domain.Responses;

namespace Inflow.Domain.Interfaces.Services
{
public interface ISupplyItemService
{
IEnumerable<SupplyItemDto> GetAllSupplyItems();
GetBaseResponse<SupplyItemDto> GetSupplyItems(SupplyItemResourceParameters supplyItemResourceParameters);
SupplyItemDto? GetSupplyItemById(int id);
SupplyItemDto CreateSupplyItem(SupplyItemForCreateDto supplyItemToCreate);
void UpdateSupplyItem(SupplyItemForUpdateDto supplyItemToUpdate);
void DeleteSupplyItem(int id);
}
}
18 changes: 18 additions & 0 deletions Inflow.Domain/Intefaces/Services/ISupplyService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Inflow.Domain.DTOs.Category;
using Inflow.Domain.DTOs.Supply;
using Inflow.Domain.Pagniation;
using Inflow.Domain.ResourceParameters;
using Inflow.Domain.Responses;

namespace Inflow.Domain.Interfaces.Services
{
public interface ISupplyService
{
IEnumerable<SupplyDto> GetAllSupplies();
GetBaseResponse<SupplyDto> GetSupplies(SupplyResourceParameters supplyResourceParameters);
SupplyDto? GetSupplyById(int id);
SupplyDto CreateSupply(SupplyForCreateDto supplyToCreate);
void UpdateSupply(SupplyForUpdateDto supplyToUpdate);
void DeleteSupply(int id);
}
}
Loading