public ActionResult Update(int id) { try { Survey survey = _iFSurvey.Read(id); return(View(survey)); } catch (Exception ex) { return(View(new Survey())); } }
public ActionResult Index(int surveyId, string description, string firstName, string middleName, string lastName, string ticketNumber) { var survey = _iFSurvey.Read(surveyId); var answeredSurvey = new AnsweredSurvey { SurveyId = surveyId, Description = description, FirstName = firstName, MiddleName = middleName, LastName = lastName, TicketNumber = ticketNumber, Survey = survey }; return(View(answeredSurvey)); }
public JsonResult Read() { return(Json(_iFSurvey.Read())); }
public JsonResult Read(int surveyId) { return(Json(_iFSurvey.Read(surveyId))); }