예제 #1
0
 //POST Update Guest
 public bool EditGuest(GuestViewModel guest)
 {
     return(_guestsRepository.EditGuest(_mapper.Map <Guest>(guest)));
 }
예제 #2
0
 //Add a new guest
 public int AddGuest(GuestViewModel guest)
 {
     return(_guestsRepository.AddGuest(_mapper.Map <Guest>(guest)));
 }