public async Task <ActionResult <Size> > GetSize(int id) { var data = await _sizeService.Get(id); return(Ok(data)); }
public IHttpActionResult Get() => Ok(_mapper.Map <IEnumerable <SizeViewModel> >(_service.Get()));
public async Task <OkObjectResult> Get(int id) { var result = await sizeService.Get(id); return(Ok(result)); }
public async Task <IActionResult> Get() { var sizes = await sizeService.Get(); return(Ok(sizes)); }