예제 #1
0
        public ActionResult Index()
        {
            var model = new B_ListenEar().GetAllListenEar();

            new B_ListenEar().UpdateRead();
            return(View(model));
        }
예제 #2
0
        public ActionResult ListenEar(string EarText)
        {
            object result = "";

            try
            {
                M_ListenEar mEar = new M_ListenEar();
                mEar.CreationDate = DateTime.Now;
                mEar.IsRead       = false;
                mEar.UserId       = CurrentUser.Id;
                mEar.Description  = EarText;
                result            = new B_ListenEar().AddListenEar(mEar);
            }
            catch (Exception ex)
            {
                M_SystemLog exx = new M_SystemLog(E_SystemType.SHAHRDARI_USER_WEB_APPLICATION, E_LogType.ERROR, ex);
                result = "Error";
                if (ex.Source == E_LogType.SYSTEM_ERROR.ToString())
                {
                    exx.LogType = E_LogType.SYSTEM_ERROR;
                    result      = exx;
                }
                L_Log.SubmitLog(exx);
            }
            return(Json(result));
        }