public IActionResult EditStep(Step step) { stepRepo.Edit(step); ViewBag.thisStep = stepRepo.Steps .Include(p => p.Project) .ThenInclude(m => m.Module) .ThenInclude(q => q.QUESTOR) .FirstOrDefault(x => x.StepId == step.StepId); return(RedirectToAction("Edit", "QUESTORs", new { id = ViewBag.thisStep.Project.Module.QUESTORId })); }
public bool Edit(StepView model) { return(_step.Edit(model)); }