|
1 | 1 | |
| 2 | +using MBDEVproAPI.DataModel; |
| 3 | +using Microsoft.AspNetCore.Http.HttpResults; |
| 4 | + |
2 | 5 | namespace MBDEVproAPI.BLL.Services |
3 | 6 | { |
4 | 7 | public class CustomerService : ICustomerService |
5 | 8 | { |
| 9 | + |
| 10 | + private readonly MBDEVproAPIDbContext _databaseContext; |
| 11 | + |
| 12 | + public CustomerService(MBDEVproAPIDbContext databaseContext) |
| 13 | + { |
| 14 | + _databaseContext = databaseContext; |
| 15 | + } |
| 16 | + |
| 17 | + /// <summary> |
| 18 | + /// GET ALL: Customers |
| 19 | + /// </summary> |
| 20 | + /// <returns></returns> |
| 21 | + public IEnumerable<CustomerModel> GetAllCustomers() |
| 22 | + { |
| 23 | + throw new NotImplementedException(); |
| 24 | + } |
| 25 | + |
| 26 | + /// <summary> |
| 27 | + /// GET: Customer |
| 28 | + /// "CustomerControllerGetCustomer": "Customer/GetCustomer" |
| 29 | + /// </summary> |
| 30 | + /// <param name="id"></param> |
| 31 | + /// <returns></returns> |
| 32 | + public CustomerModel GetCustomer(int id) |
| 33 | + { |
| 34 | + throw new NotImplementedException(); |
| 35 | + } |
| 36 | + |
| 37 | + /// <summary> |
| 38 | + /// CREATE: Customer |
| 39 | + /// "CustomerControllerCreateCustomer": "Customer/CreateCustomer" |
| 40 | + /// </summary> |
| 41 | + /// <param name="model"></param> |
| 42 | + /// <returns></returns> |
| 43 | + public SaveViewModel CreateCustomer(CustomerModel model) |
| 44 | + { |
| 45 | + throw new NotImplementedException(); |
| 46 | + } |
| 47 | + |
| 48 | + /// <summary> |
| 49 | + /// EDIT: Customer |
| 50 | + /// "CustomerControllerEditCustomer": "Customer/EditCustomer" |
| 51 | + /// </summary> |
| 52 | + /// <param name="model"></param> |
| 53 | + /// <returns></returns> |
| 54 | + public SaveViewModel EditCustomer(int id, CustomerModel model) |
| 55 | + { |
| 56 | + throw new NotImplementedException(); |
| 57 | + } |
| 58 | + |
| 59 | + /// <summary> |
| 60 | + /// DELETE: Customer |
| 61 | + /// "CustomerControllerDeleteCustomer": "Customer/DeleteCustomer" |
| 62 | + /// </summary> |
| 63 | + /// <param name="id"></param> |
| 64 | + /// <returns></returns> |
| 65 | + public SaveViewModel DeleteCustomer(int id) |
| 66 | + { |
| 67 | + throw new NotImplementedException(); |
| 68 | + } |
| 69 | + |
6 | 70 | } |
7 | 71 | } |
0 commit comments