public void SubmitProductType(BI_ProductTypeEntity entity, string keyValue) { if (string.IsNullOrWhiteSpace(keyValue)) { entity.F_OrganizeId = OperatorProvider.Provider.GetCurrent().CompanyId; entity.Create(); typeApp.Insert(entity); } else { entity.Modify(keyValue); typeApp.Update(entity); } }
public ActionResult SubmitType(BI_ProductTypeEntity entity, string keyValue) { app.SubmitProductType(entity, keyValue); return(Success("操作成功!")); }