public static IndustryInfo Create(IndustryInfo model) { if (model.Id == 0) { //Add int id = CategoryManage.AddIndustryInfo(model); model.Id = id; } else { CategoryManage.UpdateIndustryInfo(model); } return(model); }