Exemplo n.º 1
0
 public ManualService(string currentUserId)
     : base(currentUserId)
 {
     imageService = new ImageService();
     searchService = new SearchService();
     orderDictionary = new Dictionary<string, Func<IQueryable<Manual>, IOrderedQueryable<Manual>>>();
     orderDictionary.Add("Category", x => x.OrderBy(l => l.Category.Name));
     orderDictionary.Add("Name", x => x.OrderBy(l => l.Name));
 }
Exemplo n.º 2
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");
 }