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)); }
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)); }
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)); }
public JsonResult List() { ContextService <T> service = new ContextService <T>(dbSet, hostelContext); var list = service.GetEntitys(d => true); return(Json(list)); }