示例#1
0
 public HomeController()
 {
     itemPerPage = 5;
     manualService = new ManualService(currentUserId);
     commentService = new CommentService(currentUserId);
     tagService = new TagService(currentUserId);
     imageService = new ImageService();
     searchService = new SearchService();
     templates = new Dictionary<string, string>();
     templates.Add("FirstTemplate", "~/Views/Template/FirstTemplate.cshtml");
     templates.Add("SecondTemplate", "~/Views/Template/SecondTemplate.cshtml");
     templates.Add("ThirdTemplate", "~/Views/Template/ThirdTemplate.cshtml");
 }
示例#2
0
 public ManualController()
 {
     currentUserId = HttpContext.Current.User.Identity.GetUserId();
     manualService = new ManualService(currentUserId);
 }