Пример #1
0
        public IActionResult Detail(int id)
        {
            var Power = _repository.GetById(id);

            if (Power == null)
            {
                return(NotFound());
            }

            return(View(Power));
        }
Пример #2
0
 public PowerViewModel GetPowerById(int id)
 {
     return(PowerMapper.MapEntityToModel(_powerRepository.GetById(id)));
 }