Beispiel #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));
        }
Beispiel #2
0
        public PartialViewResult ThongKeLuongTruyCap()
        {
            var viewmodel = _counterRepo.GetCounter();

            return(PartialView(viewmodel));
        }
Beispiel #3
0
        public Token Post(Token token, List <TokenDetail> details)
        {
            var counter = _counterRepository.GetCounter(token.Id);

            return(token);
        }
 public ActionResult <int> Get()
 {
     return(_counterRepository.GetCounter());
 }
 public Counter Get(string counter)
 {
     return(_counterRepository.GetCounter(counter));
 }