public bool Post([FromBody]Contact contact)
 {
     var repository = new ContactsRepository();
     repository.AddOrUpdate(contact);
     repository.SaveChanges();
     return true;
 }
 public IEnumerable<Contact> GetContacts()
 {
     var repository = new ContactsRepository();
     return repository.GetAllContacts();
 }