public IActionResult TestAdd(string content, bool priority) { todoInter.AddToDo(new ToDos { Content = content, Priority = priority }); return(Redirect("Test")); }
public ActionResult AddToDo(ToDo @toDo) { TempData["Message"] = _iToDo.AddToDo(@toDo); return(RedirectToAction("Index", controllerName: "Home")); }