public void Copy(Company companyToCopy) { this.Id = companyToCopy.Id; this.Name = companyToCopy.Name; this.Office = companyToCopy.Office; this.Contacts = companyToCopy.Contacts; }
public async Task<IHttpActionResult> Add(string suiteNumber) { var office = new Office(suiteNumber); this.database.Add(office); return await this.SaveAndReturn(office); }