Ejemplo n.º 1
0
        public ActionResult Display(long Id)
        {
            string permissions = "";
            int    stat        = 0;

            if (HasPermission("[concatus]", ref permissions, ref stat))
            {
                return(RedirectToAction("AccessDeny"));
            }
            ViewBag.permissions = permissions;
            ViewBag.stat        = stat;

            ViewBag.Title = "اطلاعات درخواست تماس";
            ContactUs tk = new ContactUs();

            try
            {
                tk.Id = Id;
                tk    = tk.GetOne();
            }
            catch (Exception ex)
            {
                ErrorLog log = new ErrorLog();
                log.Description = ex.Message;
                if (ex.InnerException != null)
                {
                    log.Description += ";" + ex.Message;
                }
                log.ErrorDate = DateTime.Now;
                log.Add();
            }
            return(View(tk));
        }