Esempio n. 1
0
        // GET: UOMs
        public async Task <IActionResult> Index()
        {
            var res = await _uOMRepository.GetAllAsync();

            var model = _Mapper.Map <IEnumerable <UOMViewmodel> >(res);

            return(View(model));
        }
Esempio n. 2
0
        public async Task <IActionResult> Get()
        {
            var res = await _uomRepository.GetAllAsync();

            var model = _mapper.Map <IEnumerable <UOMDTO> >(res);

            return(Ok(model));
        }