public int DeleteCategory(string category_id) { try { return(categoryDAO.Delete(category_id)); } catch (Exception) { return(-1); } }
public int DeleteCategory(DTO_Category category) { try { if (category.Category_name.Contains("'")) { category.Category_name = checkString(category.Category_name); } return(categoryDAO.Delete(category.Category_name)); } catch (Exception) { return(-1); } }