// Used to send the post request to the server
 public Company(string name, string description, string keyWordsString, Categories categorie, Owner owner, ICollection <Location> locations, ICollection <OpeningHours> openingHours, object p, SocialMedia socialMedia, List <Promotion> promotions)
 {
     Name                = name;
     Description         = description;
     this.keyWordsString = keyWordsString;
     Categorie           = categorie;
     Owner               = owner;
     Locations           = locations;
     OpeningHours        = openingHours;
     this.p              = p;
     SocialMedia         = socialMedia;
     Promotions          = promotions;
 }
 public Company(int id, string name, string description, string keyWords, Categories categorie, Owner owner, ICollection <Location> locations, ICollection <OpeningHours> openingHours, LeaveOfAbsence leaveOfAbsence, SocialMedia socialMedia, ICollection <Promotion> promotions)
 {
     Id             = id;
     Name           = name;
     Description    = description;
     KeyWords       = keyWords;
     Categorie      = categorie;
     Owner          = owner;
     Locations      = locations;
     OpeningHours   = openingHours;
     LeaveOfAbsence = leaveOfAbsence;
     SocialMedia    = socialMedia;
     Promotions     = promotions;
     Discounts      = new List <Discount>();
 }