public List <Table> GetAllTables() { List <Table> tables = new List <Table>(); foreach (var table in d.GetAllTables()) { Table t = new Table(); t.TableId = table.TableId; t.Plasace = table.Plasace; t.RationList = d.GetAllRationsOfSpasificTable(table.TableId); tables.Add(t); } return(tables); }