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"); }
public ManualController() { currentUserId = HttpContext.Current.User.Identity.GetUserId(); manualService = new ManualService(currentUserId); }