Пример #1
0
        public async Task <IHttpActionResult> GetAsync(int id)
        {
            var retPok = await _IPedidoAppService.GetByIdAsync(id);

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

            return(Ok(retPok));
        }
Пример #2
0
 public async Task <IHttpActionResult> Get(int id)
 {
     return(Ok(await _serviceBase.GetByIdAsync(id)));
 }