public IHttpActionResult GetCategoriaNombre(string id) { try { var resp = new MethodsGenerics().GetCategoryNombre(id); return(Ok(resp)); } catch (System.Exception ex) { return(InternalServerError(ex)); } }
public IHttpActionResult UpdateCategorias(Categoria categoria) { try { var resp = new MethodsGenerics().UpdateCategory(categoria); return(Ok(resp)); } catch (System.Exception ex) { return(InternalServerError(ex)); } }
public IHttpActionResult DeleteCategory(int id) { try { var resp = new MethodsGenerics().DeleteCategoria(id); return(Ok(resp)); } catch (System.Exception ex) { return(InternalServerError(ex)); } }