public override Result <Address> Update(AddressModel model) { try { Address address = _mapper.Map <Address>(model); var result = _addressValidation.Validate(address); if (!result.Success) { return(result); } _addressDAL.Update(address); return(Result <Address> .BuildSuccess(address)); } catch (Exception error) { return(Result <Address> .BuildError("Erro ao alterar o registro do endereço.", error)); } }
public bool Update(Address address) { return(_addressDAL.Update(address)); }
public bool Update(Address model) { return(_addressDAL.Update(model) > 0); }
public bool Update(Address entity) { return(_addressDAL.Update(entity) > 0); }