예제 #1
0
        public IActionResult GetById(int id)
        {
            var entity = _repository.GetById(id);

            if (entity == null)
            {
                return(NotFound());
            }
            return(Ok(entity));
        }
예제 #2
0
 public Estoque ObterPorId(int idEstoque)
 {
     return(repository.GetById(idEstoque));
 }