Exemple #1
0
        public ActionResult Update(int id)
        {
            try
            {
                Survey survey = _iFSurvey.Read(id);

                return(View(survey));
            }
            catch (Exception ex)
            {
                return(View(new Survey()));
            }
        }
Exemple #2
0
        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()));
 }
Exemple #4
0
 public JsonResult Read(int surveyId)
 {
     return(Json(_iFSurvey.Read(surveyId)));
 }