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