Beispiel #1
0
 /// <summary>
 /// Returns a list of all rooms
 /// </summary>
 /// <returns>A list of all rooms</returns>
 public IEnumerable <Room> GetAllRooms()
 {
     try
     {
         return(repo.GetAll());
     }
     catch (Exception ex)
     {
         LogManager.Error(ex.Message);
         throw;
     }
 }
Beispiel #2
0
 // GET: api/Room
 public IEnumerable <Room> Get()
 {
     return(_roomRepo.GetAll());
 }