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