private static void ValidateCardEventItem(CardEventItemDto item) { if (item is null) { throw new BusinessLogicException(StringRes.NullEntityMsg, new ArgumentNullException(nameof(item))); } }
public async Task UpdateCardEventItemAsync(CardEventItemDto item) { ValidateCardEventItem(item); await _cardEventItemEntityService.UpdateAsync(_mapper.Map <CardEventItem>(item)); }
// CARDEVENTITEM public async Task <int> CreateCardEventItemAsync(CardEventItemDto item) { ValidateCardEventItem(item); return(await _cardEventItemEntityService.CreateAsync(_mapper.Map <CardEventItem>(item))); }