public BaseResponse <FstRegRec> SaveFstRegRec(FstRegRec request)
        {
            BaseResponse <FstRegRec> response = new BaseResponse <FstRegRec>();

            try
            {
                request.UpdateBy   = SecurityHelper.CurrentPrincipal.EmpNo;
                request.UpdateTime = DateTime.Now;
                return(base.Save <LTC_FSTREGREC, FstRegRec>(request, (q) => q.REGNO == request.RegNo));
            }
            catch (Exception ex)
            {
                response.ResultCode    = -1;
                response.ResultMessage = "保存失败,请联系管理员!";
                return(response);

                throw ex;
            };
        }
Exemple #2
0
        public IHttpActionResult Post(FstRegRec baseRequest)
        {
            var response = service.SaveFstRegRec(baseRequest);

            return(Ok(response));
        }