public ActionResult ExportAllCatShiftlList([DataSourceRequest] DataSourceRequest request, CatShiftSearchModel model) { return ExportAllAndReturn<Cat_ShiftEntity, CatShiftModel, CatShiftSearchModel>(request, model, ConstantSql.hrm_cat_sp_get_Shift); }
//public JsonResult GetCatShiftList([DataSourceRequest] DataSourceRequest request, CatShiftSearchModel model) //{ // var service = new Cat_ShiftServices(); // ListQueryModel lstModel = new ListQueryModel // { // PageIndex = request.Page, // Filters = ExtractFilterAttributes(request), // Sorts = ExtractSortAttributes(request), // AdvanceFilters = ExtractAdvanceFilterAttributes(model) // }; // var result = service.GetCat_Shift(lstModel).ToList().Translate<CatShiftModel>(); // return Json(result.ToDataSourceResult(request)); //} #endregion public ActionResult GetCatShiftList([DataSourceRequest] DataSourceRequest request, CatShiftSearchModel searchModel) { return GetListDataAndReturn<CatShiftModel, Cat_ShiftEntity, CatShiftSearchModel>(request, searchModel, ConstantSql.hrm_cat_sp_get_Shift); }