public ActionResult Email()
        {
            TKS.Models.User user = new TKS.Models.User();
            ViewBag.Email = user.Email;

            return(View());
        }
示例#2
0
        public JsonResult CommentSubmit(BlogCommentViewModel commentViewModel)
        {
            BlogPost blogPost = new BlogPost(commentViewModel.PostID);

            TKS.Models.User user = new TKS.Models.User();
            commentViewModel.Author      = user.UserName;
            commentViewModel.CommentDate = DateTime.Now;
            commentViewModel.Email       = user.Email;
            commentViewModel.IP          = Request.UserHostAddress;
            blogPost.AddComment(commentViewModel);

            return(Json(true));
        }
        public ActionResult Address()
        {
            TKS.Models.User user = new TKS.Models.User();

            return(View(new Addresses(user.UserKey).GetList()));
        }
示例#4
0
 public ActionResult ShowLogin2()
 {
     TKS.Models.User createUser = new TKS.Models.User();
     return(PartialView("_LoginPartial2", createUser));
 }