예제 #1
0
 public IActionResult EditResponse(Response response)
 {
     responseRepo.Edit(response);
     ViewBag.thisResponse = responseRepo.Responses
                            .Include(p => p.Project)
                            .ThenInclude(m => m.Module)
                            .ThenInclude(q => q.QUESTOR)
                            .FirstOrDefault(x => x.ResponseId == response.ResponseId);
     return(RedirectToAction("Edit", "QUESTORs", new { id = ViewBag.thisResponse.Project.Module.QUESTORId }));
 }