public TicketCreateViewModel(ISecurityService security, SettingsService settings, Ticket ticket)
 {
     ListUtility = MefHttpApplication.ApplicationContainer.GetExportedValue<SelectListUtility>();
     Security = security;
     Settings = settings;
     Ticket = ticket;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="TicketCenterListViewModel"/> class.
        /// </summary>
        /// <param name="listName">Name of the list.</param>
        /// <param name="ticketsList">The tickets list.</param>
        /// <param name="serviceModel">The service model.</param>
        public TicketCenterListViewModel(string listName, IPagination<Ticket> ticketsList, SettingsService settings, ISecurityService security)
        {
            Tickets = ticketsList;
            CurrentListSettings = settings.UserSettings.GetDisplayPreferences().GetPreferencesForList(listName);
            FilterBar = new FilterBarViewModel(CurrentListSettings, security.GetTdStaffUsers(), security.GetTdSubmitterUsers());
            ListsForMenu = settings.UserSettings.GetDisplayPreferences().TicketCenterListPreferences.OrderBy(lp => lp.ListMenuDisplayOrder).ToArray();

        }
 public SelectListUtility(SettingsService settings, ISecurityService security)
 {
     Settings = settings;
     Security = security;
 }
 public AccountController(ISecurityService security, SettingsService settings):base(security)
 {
     Settings = settings;
 }
 public TicketCenterController(ITicketService ticketService, ISecurityService security, SettingsService settings)
     : base(security)
 {
     Tickets = ticketService;
     Settings = settings;
 }
 public UploaderController(ITicketService ticketService, SettingsService settingsService)
 {
     Settings = settingsService;
     Tickets = ticketService;
 }
 public AdminHomeController(ISecurityService security, SettingsService settings)
     : base(security)
 {
     Settings = settings;
 }
 public ApplicationSettingsController(ISecurityService security, SettingsService settings)
     : base(security)
 {
     Settings = settings;
 }
Beispiel #9
0
 public bool ChangeUserPreferences(string userName, string displayName, string emailAddress, bool openEditorWithPreview, SettingsService settingsService)
 {
     bool status = false;
     try
     {
         var user = _provider.GetUser(userName, true);
         user.Email = emailAddress;
         user.Comment = displayName;
         _provider.UpdateUser(user);
         settingsService.UserSettings.OpenEditorWithPreview = openEditorWithPreview;
         status = true;
     }
     catch { }
     return status;
 }