public JsonResult WorkTypes()
        {
            ContextService <WorkTypeModel> service = new ContextService <WorkTypeModel>(dbSet, hostelContext);
            var list = service.GetEntitys(d => true).Select(d => new { id = d.Id, text = d.Name });

            return(Json(list));
        }
Esempio n. 2
0
        public JsonResult Persons()
        {
            ContextService <ServicePersonModel> service = new ContextService <ServicePersonModel>(dbSet, hostelContext);
            var list = service.GetEntitys(d => true).Select(d => new { id = d.Id, text = d.RealName });

            return(Json(list));
        }
Esempio n. 3
0
        public JsonResult Orders()
        {
            ContextService <HotelWorkOrderModel> service = new ContextService <HotelWorkOrderModel>(dbSet, hostelContext);
            var list = service.GetEntitys(d => true).Select(d => new { id = d.Id, text = d.Title });

            return(Json(list));
        }
        public JsonResult Departments()
        {
            ContextService <DepartmentModel> service = new ContextService <DepartmentModel>(dbSet, hostelContext);
            var list = service.GetEntitys(d => true).Select(d => new { id = d.Id, text = d.DepartmentName });

            return(Json(list));
        }
Esempio n. 5
0
        public JsonResult List()
        {
            ContextService <T> service = new ContextService <T>(dbSet, hostelContext);
            var list = service.GetEntitys(d => true);

            return(Json(list));
        }