public IActionResult CreateTask(CreateTaskDto createTaskDto) { var title = createTaskDto.Title; teamLeaderRepository.CreateSprintTask(createTaskDto); mail.SendMailForATask("*****@*****.**", "mohammad yahya ", User.Identity.Name, title); return(Redirect("ShowProject")); }
public IActionResult CreateTask(CreateTaskDto createTaskDto) { teamLeaderRepository.CreateSprintTask(createTaskDto); return(RedirectToAction("ShowSprints", new RouteValueDictionary( new { controller = "TeamLeader", action = "ShowTasks", Id = createTaskDto.SprintId }))); }