Example #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));
     }
 }
Example #2
0
 public bool Delete(Address model)
 {
     return(_addressDAL.Delete(model) > 0);
 }
Example #3
0
        public bool DeleteByID(int entityID)
        {
            Address address = GetByID(entityID);

            return(_addressDAL.Delete(address) > 0);
        }