public IHttpActionResult GetProductCategory() { WebApi_BLL.T_Product_Category bll = new WebApi_BLL.T_Product_Category(); return(Ok(ReturnJsonResult.GetJsonResult(1, "OK", JsonConvert.SerializeObject(bll.GetModelList(""))))); }
public IHttpActionResult GetProductCategoryByType(int ParentID) { WebApi_BLL.T_Product_Category bll = new WebApi_BLL.T_Product_Category(); return(Ok(ReturnJsonResult.GetJsonResult(-1, "OK", JsonConvert.SerializeObject(bll.GetModelList(" ParentID =" + ParentID))))); }