public IActionResult Create(Manager manager)
 {
     if (ModelState.IsValid)
     {
         _manager.AddManager(manager);
         return(View("Thank", manager));
     }
     else
     {
         return(View());
     }
 }
Esempio n. 2
0
 public void Post([FromBody] Manager manager)
 {
     _manager.AddManager(manager);
 }
Esempio n. 3
0
 // POST: api/Manager
 public void Post([FromBody] ManagerDto manager)
 {
     _managerRepository.AddManager(manager);
 }