Esempio n. 1
0
        public async Task <ActionResult> SearchingEmployeeByConsumer(String q, Int32 consumerId)
        {
            if (User == null)
            {
                return(null);
            }

            ConsumerManagement manage = new ConsumerManagement(_context);
            var employees             = await manage.GetEmployeesByConsumer(q, consumerId);

            List <EmployeeSearchViewModel> searchModel = EmployeeSearchViewModel.GetList(employees);

            return(Json(new { data = searchModel }, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
        public async Task <ActionResult> ServiceCoordinatorslist(String q, Int32?agencyId)
        {
            if (User == null)
            {
                return(null);
            }

            ConsumerManagement manage = new ConsumerManagement(_context);
            var contacts = await manage.GetServiceCoordinatorList(q, agencyId);

            List <EmployeeSearchViewModel> searchModel = EmployeeSearchViewModel.GetList(contacts);

            return(Json(new { data = searchModel }, JsonRequestBehavior.AllowGet));
        }