public IActionResult EditSprint(int SprintId) { var Sprint = SprintRep.GetSprint(SprintId); ViewBag.Project = ProjectRep.GetProjectFromSprintId(SprintId); return(View(Sprint)); }
public String SubmitAllWorks(int SprintTaskId) { var Reselt = "NOT"; var IsAllWorksApproved = WorkRep.IsAllWorksApproved(SprintTaskId); if (IsAllWorksApproved) { //All works for this SprintTask is Approved....> make SprintTask Completed SprintTaskRep.CompletedSprintTask(SprintTaskId); Reselt = "YES"; //need to check Sprint.......> IsAllSprintTaskComplet var SprintTask = SprintTaskRep.GetSprintTask(SprintTaskId); var Sprint = SprintRep.GetSprint(SprintTask.SprintId); var IsSprintComplet = SprintTaskRep.IsAllSprintTaskComplet(Sprint); //if all SprintTaskComplet...>Sprint Complet } return(JsonConvert.SerializeObject(Reselt)); }
public IActionResult ShowSprintTasks(int SprintId) { ViewBag.Sprint = SprintRep.GetSprint(SprintId); ViewBag.SprintTasks = SprintTaskRep.GetSprintTasks(SprintId); return(View()); }