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