Example #1
0
        // GET: User/EmployeeGrants
        public ActionResult Index()
        {
            ViewBag.EmployeeDebts = employeeDebts;
            DebtVwViewModel model  = new DebtVwViewModel();
            DebtVwFilter    filter = new DebtVwFilter();

            filter.EmployeeId = int.Parse(CurrentUser.UserName);
            model.List        = DebtVwServices.Get(filter, db);
            return(View(model));
        }
Example #2
0
 public int GetTotalRowCount(DebtVwFilter filter)
 {
     return(ExecuteQuery <Scalar <int> >(filter.GetTotalRowCountStatement(ParameterReplacementOption.BracketEnclosedNumber), filter.ExtractValues().ToArray()).First <Scalar <int> >().Value);
 }
Example #3
0
 public List <DebtVw> GetPage(DebtVwFilter filter, int pageIndex, int pageSize)
 {
     return(ExecuteQuery <DebtVw>(filter.ToString(pageIndex, pageSize, ParameterReplacementOption.BracketEnclosedNumber), filter.ExtractValues().ToArray()).ToList <DebtVw>());
 }
Example #4
0
 public List <DebtVw> Get(DebtVwFilter filter)
 {
     return(ExecuteQuery <DebtVw>(filter.ToString(ParameterReplacementOption.BracketEnclosedNumber), filter.ExtractValues().ToArray()).ToList <DebtVw>());
 }