Exemple #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));
        }
        public async Task <bool> AddCounter(CounterDetails counterDetails)
        {
            var counterEntity = _mapper.Map <Counter>(counterDetails);

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