Ejemplo n.º 1
0
        public IHttpActionResult GetById(int id)
        {
            var brand = brandDal.GetById(id);

            if (brand == null)
            {
                return(NotFound());
            }
            return(Ok(brand));
        }