예제 #1
0
 public override Result Delete(AddressModel model)
 {
     try
     {
         Address address = _mapper.Map <Address>(model);
         _addressDAL.Delete(address);
         return(_addressDAL.Save());
     }
     catch (Exception error)
     {
         return(Result.BuildError("Erro ao deletar o registro do endereço.", error));
     }
 }