Пример #1
0
 public async Task UpdateGuestAsync(string id, [FromBody] Guest guest)
 {
     guest.id = Guid.Parse(id).ToString();
     await _repository.UpdateEntityAsync(CollectionName, id, guest);
 }
Пример #2
0
 public async Task UpdateConferenceRoomAsync(string id, [FromBody] ConferenceRoom conferenceRoom)
 {
     conferenceRoom.id = Guid.Parse(id).ToString();
     await _repository.UpdateEntityAsync(CollectionName, id, conferenceRoom);
 }
Пример #3
0
 public async Task UpdateOfficeAsync(string id, [FromBody] Office office)
 {
     office.id = Guid.Parse(id).ToString();
     await _repository.UpdateEntityAsync(CollectionName, id, office);
 }
Пример #4
0
 public async Task UpdateStationAsync(string id, [FromBody] Station station)
 {
     station.id = Guid.Parse(id).ToString();
     await _repository.UpdateEntityAsync(CollectionName, id, station);
 }
Пример #5
0
 public async Task UpdateEmployeeAsync(string id, [FromBody] Employee employee)
 {
     // employee.id = Guid.Parse(id);
     await _repository.UpdateEntityAsync(CollectionName, id, employee);
 }