public async Task <bool> UpdateLotteryEventAsync(LotteryEvent model) { return(await eventRepository.UpdateAsync(mapper.Map <LotteryEventEntity>(model))); }
public void AddLotteryEventAsync(LotteryEvent model) { eventRepository.Add(mapper.Map <LotteryEventEntity>(model)); }