예제 #1
0
        public async Task <CounterInfo> AddCounter(string userId)
        {
            var counterInfo = new CounterInfo
            {
                Counter = 0,
                UserId  = userId
            };

            await _counterRepository.AddCounter(counterInfo);

            return(await _counterRepository.GetCounter(userId));
        }
예제 #2
0
        public async Task <bool> AddCounter(CounterDetails counterDetails)
        {
            var counterEntity = _mapper.Map <Counter>(counterDetails);

            return(await _counterRepository.AddCounter(counterEntity));
        }