/// <summary> /// 创建一个员工补缴 /// </summary> /// <param name="validationErrors">返回的错误信息</param> /// <param name="db">数据库上下文</param> /// <param name="entity">一个员工补缴</param> /// <returns></returns> public bool Create(ref ValidationErrors validationErrors, EmployeeGoonPayment entity) { try { repository.Create(entity); return(true); } catch (Exception ex) { validationErrors.Add(ex.Message); ExceptionsHander.WriteExceptions(ex); } return(false); }
/// <summary> /// 报增保险。不更新数据库 /// </summary> /// <param name="db">实体类</param> /// <param name="entity">初始值</param> /// <returns></returns> public bool CreateEmployeeGoonPayment(SysEntities entities, EmployeeGoonPayment entity) { repository.Create(entities, entity); return(true); }