public ApiResponse <bool> DeleteContact(int id)
 {
     try
     {
         var data = _contact.DeleteContact(id);
         return(ApiUtility.ApiSuccess <bool>(data));
     }
     catch (Exception ex)
     {
         return(ApiUtility.ApiError <bool>(ex));
     }
 }
 public ApiResponse <Contact> GetContactById(int id)
 {
     try
     {
         var data = _contact.GetContactById(id);
         return(ApiUtility.ApiSuccess <Contact>(data));
     }
     catch (Exception ex)
     {
         return(ApiUtility.ApiError <Contact>(ex));
     }
 }
 public ApiResponse <bool> EditContact(Contact contact)
 {
     try
     {
         var data = _contact.EditContact(contact);
         return(ApiUtility.ApiSuccess <bool>(data));
     }
     catch (Exception ex)
     {
         return(ApiUtility.ApiError <bool>(ex));
     }
 }
 public ApiResponse <List <Contact> > GetContacts(bool?status = null)
 {
     try
     {
         var data = _contact.GetContactes(status);
         return(ApiUtility.ApiSuccess <List <Contact> >(data));
     }
     catch (Exception ex)
     {
         return(ApiUtility.ApiError <List <Contact> >(ex));
     }
 }