Exemplo n.º 1
0
 public TableAttribute(string fileName, TableLocations location)
 {
     this.FileName = fileName;
     this.Locations = location;
 }
Exemplo n.º 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();
 }
Exemplo n.º 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());
 }
Exemplo n.º 4
0
 public TableAttribute(string fileName, TableLocations location)
 {
     this.FileName  = fileName;
     this.Locations = location;
 }