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