// GET: CashVoucher public ActionResult Index() { CashVoucherSearch search = new CashVoucherSearch(); search.SchoolId = CurrentUser.Teacher.Yoh_SchoolId; return(View(search)); }
public ActionResult GetCashVoucheres(CashVoucherSearch search) { CashVoucherBll cashVoucherBll = new CashVoucherBll(); var viewModels = cashVoucherBll.GetPagingCashVoucherForSchool(search.Pagination, search.Id, search.Name, search.Status, search.SchoolId); var table = AbhsTableFactory.Create(viewModels, search.Pagination.TotalCount); return(Json(table, JsonRequestBehavior.AllowGet)); }