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)); }
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 UserController() { userService = new UserService(); imageService = new ImageService(); }
public UserService() { unitOfWork = new UnitOfWork.UnitOfWork(); imageService = new ImageService(); }