Пример #1
0
        public async Task <ActionResult <Size> > GetSize(int id)
        {
            var data = await _sizeService.Get(id);

            return(Ok(data));
        }
Пример #2
0
 public IHttpActionResult Get()
 => Ok(_mapper.Map <IEnumerable <SizeViewModel> >(_service.Get()));
Пример #3
0
        public async Task <OkObjectResult> Get(int id)
        {
            var result = await sizeService.Get(id);

            return(Ok(result));
        }
Пример #4
0
        public async Task <IActionResult> Get()
        {
            var sizes = await sizeService.Get();

            return(Ok(sizes));
        }