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 PartialViewResult ThongKeLuongTruyCap() { var viewmodel = _counterRepo.GetCounter(); return(PartialView(viewmodel)); }
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)); }