diff --git a/cat_cafe/Entities/Bar.cs b/cat_cafe/Entities/Bar.cs new file mode 100644 index 0000000..1345acd --- /dev/null +++ b/cat_cafe/Entities/Bar.cs @@ -0,0 +1,24 @@ +using System; +namespace cat_cafe.Entities +{ + public class Bar + { + + + public long Id { get; set; } + public string? Name { get; set; } + public List cats { get; set; } = new List(); + + + public void addCat(Cat c) + { + cats.Add(c); + } + public void removeCat(Cat c) + { + cats.Remove(c); + } + + } +} + diff --git a/cat_cafe/Properties/launchSettings.json b/cat_cafe/Properties/launchSettings.json index fd816e1..0e99e9a 100644 --- a/cat_cafe/Properties/launchSettings.json +++ b/cat_cafe/Properties/launchSettings.json @@ -1,4 +1,4 @@ -{ +{ "$schema": "https://json.schemastore.org/launchsettings.json", "iisSettings": { "windowsAuthentication": false, @@ -11,7 +11,6 @@ "profiles": { "cat_cafe": { "commandName": "Project", - "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", "applicationUrl": "https://localhost:7229;http://localhost:5229", @@ -28,4 +27,4 @@ } } } -} +} \ No newline at end of file diff --git a/cat_cafe/Repositories/BarContext.cs b/cat_cafe/Repositories/BarContext.cs new file mode 100644 index 0000000..951737d --- /dev/null +++ b/cat_cafe/Repositories/BarContext.cs @@ -0,0 +1,11 @@ +using System; +namespace cat_cafe.Repositories +{ + public class BarContext + { + public BarContext() + { + } + } +} +