Esempio n. 1
0
        public CounterViewModel Get(int id)
        {
            Counter counter = _counterRepository.GetCounterByID(1);

            if (counter.Counter1 < 10)
            {
                counter = _counterRepository.AddToCounterByID(1, id);
            }
            CounterViewModel counterVM = Mapper.Map <Counter, CounterViewModel>(counter);

            return(counterVM);
        }