示例#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());
        }