Exemple #1
0
        //public List<sp_GetAllSurvey_Result> GetAllSurvey(int? pumpId)
        //{
        //    List<sp_GetAllSurvey_Result> survey = dbContext.sp_GetAllSurvey(pumpId).ToList();
        //    return survey;
        //}
        public List <sp_GetAllSurvey_Result> GetAllSurveys(SurveySearchModel model)
        {
            List <sp_GetAllSurvey_Result> survey = dbContext.sp_GetAllSurvey(model.pumpId, model.areaId, model.regionId, model.deptId, model.catId).ToList();

            return(survey);
        }
Exemple #2
0
 public List <sp_GetAllSurvey_Result> GetAllSurveys(SurveySearchModel model)
 {
     return(uow.HomeDAL.GetAllSurveys(model));
 }
        public ActionResult GetAllSurveys(SurveySearchModel model)
        {
            List <sp_GetAllSurvey_Result> survey = service.GetAllSurveys(model);

            return(Json(survey, JsonRequestBehavior.AllowGet));
        }