Esempio n. 1
0
 public ChangeShiftViewModel Put(Guid id, [FromBody] ChangeShiftViewModel changeShift)
 {
     changeShift.Id = id;
     return(_changeShiftService.UpdateViewModel(changeShift));
 }
Esempio n. 2
0
 public async Task <ChangeShiftViewModel> Post([FromBody] ChangeShiftViewModel changeShift)
 {
     return(_changeShiftService.CreateViewModel(changeShift));
 }