public static VideoCatInfo Create(VideoCatInfo model) { if (model.Id == 0) { //Add int id = CategoryManage.AddVideoCatInfo(model); model.Id = id; } else { CategoryManage.UpdateVideoCatInfo(model); } return(model); }