public IHttpActionResult Get(int id)
 {
     try
     {
         Categoria categoria = CategoriaBLL.Get(id);
         return(Content(HttpStatusCode.OK, categoria));
     }
     catch (Exception)
     {
         return(NotFound());
     }
 }
        // GET: Categorias/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Categoria categoria = CategoriaBLL.Get(id);

            if (categoria == null)
            {
                return(HttpNotFound());
            }
            return(View(categoria));
        }