예제 #1
0
        public virtual AjaxResult PostEntity(T entity)
        {
            var ajaxResult = new AjaxResult();

            try
            {
                ajaxResult.Data      = _baseBL.AddEntity(entity);
                ajaxResult.Success   = true;
                ajaxResult.Messanger = Properties.Resources.VN_SuccessInsert;
            }
            catch (Exception)
            {
                ajaxResult.Success   = false;
                ajaxResult.Messanger = Properties.Resources.VN_ErrInsert;
            }

            return(ajaxResult);
        }