public void Post(Contact contact)
 {
     try
     {
         if (contact == null)
         {
             contact = new Contact();
         }
         else
         {
             var repo = new ApplicationRepository();
             repo.AddContact(contact);
         }
     }
     catch (Exception ex)
     {
     }
 }