示例#1
0
 public TableAttribute(string fileName, TableLocations location)
 {
     this.FileName = fileName;
     this.Locations = location;
 }
示例#2
0
 public bool IsTableAvailable(int amountOfPersons, TableLocations desirableLocation)
 {
     return (from t in Restaurant.Tables
             where t.Roominess == amountOfPersons && t.IsAvailable && t.Location == desirableLocation
             select t).Any();
 }
示例#3
0
 public bool IsTableAvailable(int amountOfPersons, TableLocations desirableLocation)
 {
     return((from t in Restaurant.Tables
             where t.Roominess == amountOfPersons && t.IsAvailable && t.Location == desirableLocation
             select t).Any());
 }
示例#4
0
 public TableAttribute(string fileName, TableLocations location)
 {
     this.FileName  = fileName;
     this.Locations = location;
 }