Exemplo n.º 1
0
 public void DeleteRoomStatus()
 {
     try
     {
         Console.WriteLine("Print Id: ");
         int id = Int32.Parse(Console.ReadLine());
         roomStatusService.DeleteRoomStatus(id);
         Console.WriteLine("Object successful deleted");
         ConsoleRoomStatusPresenter.Present(roomStatusService.ReadRoomStatuses());
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         DeleteRoomStatus();
     }
 }
 public RoomStatusViewModel DeleteRoomStatus(int id)
 {
     return(mapper.Map <RoomStatusViewModel>(roomStatusRepository.DeleteRoomStatus(id)));
 }