public ActionResult Create(direction d)
 {
     if (ModelState.IsValid)
     {
         ause.AddDirection(d);
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View());
     }
 }
Esempio n. 2
0
 public IActionResult AddDirection(Direction direction)
 {
     //UserService service = new UserService();
     return(Ok(_directionService.AddDirection(direction)));
 }