/// <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; } }
// GET: api/Room public IEnumerable <Room> Get() { return(_roomRepo.GetAll()); }