public List <Customer> AddCustomer(Customer c) { customerRepo.Add(c); CustomerList = customerRepo.GetAllCustomer(); return(CustomerList); }
public CustomerService() { customerRepo = new CustomerRepositary(CustomerDbContext.Instance); CustomerList = new List <Customer>(); CustomerList = customerRepo.GetAllCustomer(); }