public ActionResult Email() { TKS.Models.User user = new TKS.Models.User(); ViewBag.Email = user.Email; return(View()); }
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())); }
public ActionResult ShowLogin2() { TKS.Models.User createUser = new TKS.Models.User(); return(PartialView("_LoginPartial2", createUser)); }