public async Task<int> AddContactAsyn(Contact contact)
 {
     contact.CreateDate = DateTime.UtcNow;
     contact.UpdateDate = DateTime.UtcNow;
     _applicationDbContext.Contacts.Add(contact);
     return await _applicationDbContext.SaveChangesAsync();
 }
 public async Task<int> DeleteContactAsyn(Contact contact)
 {
     
     _applicationDbContext.Contacts.Remove(contact);
     return await _applicationDbContext.SaveChangesAsync();
 }
 public async Task<int> EditContactAsyn(Contact contact)
 {
   _applicationDbContext.Entry(contact).State=EntityState.Modified;
    return await _applicationDbContext.SaveChangesAsync();
     
 }