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