Exemplo n.º 1
0
 /// <summary>
 /// Return a Room with a specific id
 /// </summary>
 /// <param name="id">The room id</param>
 /// <returns>The room identified</returns>
 public Room GetRoomById(int id)
 {
     try
     {
         return(repo.Single(r => r.RoomId == id));
     }
     catch (Exception ex)
     {
         LogManager.Error(ex.Message);
         throw;
     }
 }