public IActionResult AddManager(string shelterId, [FromBody] Shelter.shared.Manager manager)
 {
     manager.ShelterId = shelterId;
     manager           = _dataAccess.AddManager(shelterId, manager);
     return(Ok(manager));
 }
Esempio n. 2
0
 public Manager AddManager(string shelterId, Shelter.shared.Manager manager)
 {
     _context.Employees.InsertOne(manager);
     return(manager);
 }