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