コード例 #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);
        }
コード例 #2
0
 public List <sp_GetAllSurvey_Result> GetAllSurveys(SurveySearchModel model)
 {
     return(uow.HomeDAL.GetAllSurveys(model));
 }
コード例 #3
0
        public ActionResult GetAllSurveys(SurveySearchModel model)
        {
            List <sp_GetAllSurvey_Result> survey = service.GetAllSurveys(model);

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