Ejemplo n.º 1
0
 public IActionResult UpdateEmployee(string shelterId, string employeeId, [FromBody] Shelter.shared.Employee employee)
 {
     employee.Id        = employeeId;
     employee.ShelterId = shelterId;
     _dataAccess.UpdateEmployee(shelterId, employeeId, employee);
     return(Ok(employee));
 }
Ejemplo n.º 2
0
 public void UpdateEmployee(string shelterId, string employeeId, Shelter.shared.Employee employee)
 {
     _context.Employees.ReplaceOne(x => x.ShelterId == shelterId && x.Id == employeeId, employee);
 }