private void SetLocalization(GiveawayListItemVo item, bool editing) { if (item != null) { DisplayAttribute displayStatus = item.Status.GetAttributeOfType <DisplayAttribute>(); item.StatusLocalized = SharedLocalizer[displayStatus != null ? displayStatus.Name : item.Status.ToString()]; } }
private void SetLocalization(GiveawayListItemVo item) { SetLocalization(item, false); }