예제 #1
0
        public ActionResult CalculatorConstants(string term)
        {
            var results = _calculatorConstantService.GetCalculatorConstants(new GetCalculatorConstantsRequest {
                Take = 20, Term = term
            });

            return(Json(new { results = results.CalculatorConstants }, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
 public void GetDataRowCount(GridViewCustomBindingGetDataRowCountArgs e)
 {
     e.DataRowCount = _calculatorConstantService.GetCalculatorConstants(new GetCalculatorConstantsRequest {
         OnlyCount = true
     }).Count;
 }