示例#1
0
        public ActionResult edituk_tpl()
        {
            Admtszh    admuser = repository.Admtszh.Where(p => p.AdmtszhId.Equals(WebSecurity.CurrentUserId)).SingleOrDefault();
            uk_profile uk      = repository.uk_profile.Where(p => p.id.Equals(admuser.id_uk)).SingleOrDefault();

            return(View());
        }
示例#2
0
        public ActionResult test(string author, string text)
        {
            Admtszh    admuser       = repository.Admtszh.Where(p => p.AdmtszhId.Equals(WebSecurity.CurrentUserId)).SingleOrDefault();
            string     requestDomain = Request.Headers["host"];
            uk_profile uk            = repository.uk_profile.Where(p => p.id.Equals(admuser.id_uk)).SingleOrDefault();

            Log.Warn("Ошибка доступа Home/test. requestDomain: " + requestDomain + " <> " + uk.host);
            Log.Warn("Пользователь: " + WebSecurity.CurrentUserName);
            System.Web.HttpRequestBase ss = Request;
            return(new HttpStatusCodeResult(404, "F*****g duck"));
            // return Json(author);
        }