private List <Room> GetAllRooms() { List <Room> rooms = new List <Room>(); var dtos = _containerDAL.GetAllRooms(); foreach (var d in dtos) { rooms.Add(ExtractRoom(d)); } return(rooms); }
public List <Room> GetAllRooms() { List <Room> rooms = new List <Room>(); var dtos = containerDAL.GetAllRooms(); foreach (var d in dtos) { rooms.Add(ExtractRoom(d)); } Rooms = rooms; return(rooms); }