Ejemplo n.º 1
0
 public IActionResult GetRooms()
 {
     if (string.IsNullOrEmpty(RoomId))
     {
         var res = new GetRoomsResult
         {
             ArmChairByRooms = AdministrationRepository.GetArmChairByRoom(),
             Rooms           = AdministrationRepository.GetRooms()
         };
         return(View(res));
     }
     else
     {
         var res = new GetRoomsResult
         {
             ArmChairByRooms = AdministrationRepository.GetArmChairByRoom(RoomId),
             Rooms           = AdministrationRepository.GetRooms()
         };
         return(View(res));
     }
 }