Example #1
0
        public AjaxResult Post([FromBody] Ref _ref)
        {
            var ajaxResult = new AjaxResult();

            try
            {
                _refDL.AddRef(_ref);
            }
            catch (Exception ex)
            {
                ajaxResult.Data    = ex;
                ajaxResult.Success = false;
                ajaxResult.Message = Resources.MessageVN;
            }
            return(ajaxResult);
        }
Example #2
0
        public AjaxResult Post([FromBody] Ref _refitem)
        {
            var _ajaxResult = new AjaxResult();

            try
            {
                _refDL.AddRef(_refitem);
            }
            catch (Exception ex)
            {
                _ajaxResult.Success = false;
                _ajaxResult.Data    = ex;
                _ajaxResult.Message = Resources.erroVN;
            }
            return(_ajaxResult);
        }