/// <summary>
        /// assume that tihs data comes from business layer.
        /// </summary>
        /// <param name="queryString"></param>
        /// <returns></returns>
        private DataGridResponseViewModel GetResponse(DataGridRequestQueryString queryString, int rideWith)
        {
            DataGridResponseViewModel model = new DataGridResponseViewModel(queryString);
            
            model.recordsTotal = rideWith;
            model.data = new CustomerDataGenerator().GenerateCustomerList(queryString,rideWith);

            return model;
        }
 public DataGridResponseViewModel(DataGridRequestQueryString queryString)
 {
     _draw = queryString.draw;
 }
 public DataGridResponseViewModel(DataGridRequestQueryString queryString)
 {
     _draw = queryString.draw;
 }
        public ActionResult FillGrid(DataGridRequestQueryString queryString, int rideWith)
        {
            DataGridResponseViewModel resp = GetResponse(queryString, rideWith);

            return Json(resp, JsonRequestBehavior.AllowGet);
        }