// POST api/<controller> public void Post(SurveyModel value) { _SurveyHandler = new SurveyDataHandler(); _SurveyHandler.Save(value); }
// GET api/<controller>/5 public SurveyModel Get(int id) { _SurveyHandler = new SurveyDataHandler(); return(_SurveyHandler.GetDashboarData(1)); }
// GET api/<controller>/5 public SurveyModel Get(int id) { _SurveyHandler = new SurveyDataHandler(); return(_SurveyHandler.GetAllQuestion(id)); }