示例#1
0
 public List <Room> GetAllAvailableRooms(DateTime start, DateTime end)
 {
     if (start.Date > end.Date)
     {
         throw new ArgumentException("start should be before end");
     }
     return(repo.GetAllAvailableRooms(start, end));
 }