public async Task<IHttpActionResult> Add(string name)
        {
            var contact = new Contact(name);

            this.database.Add(contact);

            return await SaveAndReturn(contact);
        }
예제 #2
0
 public void Copy(Contact contactToCopy)
 {
     this.Id = contactToCopy.Id;
     this.Name = contactToCopy.Name;
     this.HireDate = contactToCopy.HireDate;
 }