public bool UpdateCategory(string categoryid, string categoryName, int status, List<string> attrlist, List<string> saleattr, string description, string operateid) { var dal = new ProductsDAL(); bool bl = dal.UpdateCategory(categoryid, categoryName, status, string.Join(",", attrlist), string.Join(",", saleattr), description, operateid); if (bl) { var model = GetCategoryByID(categoryid); model.CategoryName = categoryName; model.Description = description; } return bl; }