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