Пример #1
0
        public IHttpActionResult GetContries()
        {
            WorkWithCustomer workWithCustomer = new WorkWithCustomer();
            var result = workWithCustomer.FindPersons(db, new SearchViewModel()).AsEnumerable().ToList();

            return(Ok(result));
        }
Пример #2
0
        public IHttpActionResult ChangeCustomerStatus(int id)
        {
            var workWithCustomer = new WorkWithCustomer();

            workWithCustomer.ChangePersonStatus(db, id);
            return(Ok());
        }
Пример #3
0
        public IEnumerable <IAuthorizedPerson> GetCustomers()
        {
            WorkWithCustomer workWithCustomer = new WorkWithCustomer();

            return(workWithCustomer.FindPersons(db, new SearchViewModel()).AsEnumerable().ToList());
        }