public ResultBM SaveAddress(AddressBM addressBm) { try { AddressDAL addressDal = new AddressDAL(); AddressDTO addressDto = null; ResultBM validResult = IsValid(addressBm); if (!validResult.IsValid()) { return(validResult); } addressDto = new AddressDTO(addressBm.id, addressBm.street, addressBm.number, addressBm.apartment, addressBm.neighborhood, addressBm.comment, addressBm.country.iso2); addressDal.SaveAddress(addressDto); addressBm.id = addressDto.id; return(new ResultBM(ResultBM.Type.OK, "Dirección guardada.", addressBm)); } catch (Exception exception) { return(new ResultBM(ResultBM.Type.EXCEPTION, SessionHelper.GetTranslation("SAVING_ERROR") + " " + exception.Message, exception)); } }