コード例 #1
0
        public IActionResult CreateResponse(Response response)
        {
            responseRepo.Save(response);
            ViewBag.thisResponse = responseRepo.Responses
                                   .Include(p => p.Project)
                                   .ThenInclude(m => m.Module)
                                   .ThenInclude(q => q.QUESTOR)
                                   .FirstOrDefault(x => x.ResponseId == response.ResponseId);
            var thisStep = responseRepo.Responses.FirstOrDefault(x => x.ResponseId == response.ResponseId);

            return(RedirectToAction("Edit", "QUESTORs", new { id = ViewBag.thisResponse.Project.Module.QUESTORId }));
        }
コード例 #2
0
 /// <summary>
 /// Writes to the repository file to serialize the data for data storage
 /// </summary>
 public void Save()
 {
     _responseRepository.Save();
 }
コード例 #3
0
 public IActionResult Create(Models.Response response)
 {
     responseRep.Save(response);
     return(Redirect("/Questions/Edit/" + response.QuestionId));
 }