/// <summary>
        /// 数据验证
        /// </summary>
        /// <param name="input">条件参数</param>
        /// <param name="errMsgList">错误信息集合</param>
        /// <returns></returns>
        private async Task <string> UpdateValidateAsync(Desc_Customer_Material_AppUpdateInputDto input, List <string> errMsgList)
        {
            try
            {
                await Task.Yield();

                return(string.Join(',', errMsgList));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #2
0
        /// <summary>
        /// 修改客户-物资
        /// </summary>
        /// <param name="input">条件参数</param>
        /// <returns></returns>
        public async Task <ActionResult> UpdateDescCustomerMaterial(Desc_Customer_Material_AppUpdateInputDto input)
        {
            try
            {
                var result = await _appService.Update(input);

                return(Ok(JsonUtils.SerializeObject(true, "success")));
            }
            catch (Exception ex)
            {
                Logger.ErrorFormat("异常消息:{0} {1}", ex.Message, ex.InnerException?.Message);
                return(BadRequest(JsonUtils.SerializeObject(false, "failed", ex.Message)));
            }
        }
        /// <summary>
        /// 修改验证
        /// </summary>
        /// <param name="input">条件参数</param>
        /// <returns></returns>
        public async Task <string> UpdateValidateAsync(Desc_Customer_Material_AppUpdateInputDto input)
        {
            try
            {
                string errMsg     = string.Empty;
                var    errMsgList = new List <string>();
                errMsg = await UpdateValidateAsync(input, errMsgList);

                return(errMsg);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }