-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathICustomerService.cs
More file actions
50 lines (31 loc) · 1.16 KB
/
Copy pathICustomerService.cs
File metadata and controls
50 lines (31 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace MBDEVproAPI.BLL.Interfaces
{
public interface ICustomerService : IBaseService<CustomerModel>
{
#region
#endregion
#region Get All Customers
Task<CustomerViewModel> GetAllCustomersVMAsync(int BusinessID);
Task<IEnumerable<CustomerModel>> GetAllCustomersAsync(int BusinessID);
#endregion
#region Get Customer
Task<Customer> GetCustomerAsync(int CustomerID);
#endregion
#region Add Customer
Task<SaveViewModel> CreateCustomerVMAsync(CustomerViewModel vm);
Task<SaveViewModel> CreateCustomerAsync(CustomerModel model);
SaveViewModel CreateCustomer(CustomerModel model);
#endregion
#region Edit Customer
Task<SaveViewModel> EditCustomerVMAsync(CustomerViewModel vm);
Task<SaveViewModel> EditCustomer(CustomerModel model);
#endregion
#region Delete Customer
Task<SaveViewModel> DeleteCustomerVMAsync(int CustomerID);
Task<CustomerModel> DeleteCustomer(int CustomerID);
#endregion
}
}