public ActionResult GetCodeCombinitionList() { CodeCombinitionListModel model = new CodeCombinitionListModel(); model.SOBId = SessionHelper.SOBId; model.CodeCombinitions = CodeCombinationHelper.GetCodeCombinations(model); return PartialView("_List", model); }
public ActionResult Index(long id, CodeCombinitionListModel model) { model.SOBId = id; model.CodeCombinitions = CodeCombinationHelper.GetCodeCombinations(model); return View(model); }
public static List<CodeCombinitionViewModel> GetCodeCombinations(CodeCombinitionListModel model) { return service.GetAll(AuthenticationHelper.CompanyId.Value, model.SOBId, model.SearchText, true, model.Page, model.SortColumn, model.SortDirection) .Select(x => new CodeCombinitionViewModel(x)).ToList(); }