/// <summary> /// 创建一个简历管理 /// </summary> /// <param name="validationErrors">返回的错误信息</param> /// <param name="db">数据库上下文</param> /// <param name="entity">一个简历管理</param> /// <returns></returns> public bool Create(ref ValidationErrors validationErrors, Resume entity) { try { repository.Create(entity); return(true); } catch (Exception ex) { validationErrors.Add(ex.Message); ExceptionsHander.WriteExceptions(ex); } return(false); }