public IHttpActionResult GetContries() { WorkWithCustomer workWithCustomer = new WorkWithCustomer(); var result = workWithCustomer.FindPersons(db, new SearchViewModel()).AsEnumerable().ToList(); return(Ok(result)); }
public IHttpActionResult ChangeCustomerStatus(int id) { var workWithCustomer = new WorkWithCustomer(); workWithCustomer.ChangePersonStatus(db, id); return(Ok()); }
public IEnumerable <IAuthorizedPerson> GetCustomers() { WorkWithCustomer workWithCustomer = new WorkWithCustomer(); return(workWithCustomer.FindPersons(db, new SearchViewModel()).AsEnumerable().ToList()); }