/// <summary> /// The constructor for the QFControllerBase class. /// </summary> /// <param name="dataService">The data service used to return data to the views contained within this class.</param> /// <param name="securityManager">The <see cref="QuickFrame.Security.QuickFrameSecurityManager"/> used to apply security to functions within this class.</param> public QfControllerBase(IDataServiceBase <TEntity> dataService, QuickFrameSecurityManager securityManager) { _dataService = dataService; _securityManager = securityManager; _viewOptions = new ViewOptions { PerPageList = new List <SelectListItem>() { new SelectListItem { Text = "25", Value = "25" }, new SelectListItem { Text = "50", Value = "50" }, new SelectListItem { Text = "75", Value = "75" }, new SelectListItem { Text = "100", Value = "100" }, }, PerPageDefault = "25" }; }
public RoleRequirement(QuickFrameSecurityManager securityManager) { _securityManager = securityManager; }
public QfCompositeController(IDataServiceComposite <TEntity, TFirst, TSecond> dataService, QuickFrameSecurityManager securityManager, IOptions <ViewOptions> viewOptions) : base(dataService, securityManager, viewOptions) { }
/// <summary> /// The constructor for the QfCompositeController class. /// </summary> /// <param name="dataService">The data service used to return data to the views contained within this class.</param> /// <param name="securityManager">The <see cref="QuickFrame.Security.QuickFrameSecurityManager"/> used to apply security to functions within this class.</param> public QfCompositeController(IDataServiceComposite <TEntity, TFirst, TSecond> dataService, QuickFrameSecurityManager securityManager) : base(dataService, securityManager) { }
public QfControllerInt(IDataServiceCore <TEntity, int> dataService, QuickFrameSecurityManager securityManager, IOptions <ViewOptions> viewOptions) : base(dataService, securityManager, viewOptions) { }
/// <summary> /// The constructor for the QfControllerInt class. /// </summary> /// <param name="dataService">The data service used to return data to the views contained within this class.</param> /// <param name="securityManager">The <see cref="QuickFrame.Security.QuickFrameSecurityManager"/> used to apply security to functions within this class.</param> public QfControllerInt(IDataServiceCore <TEntity, int> dataService, QuickFrameSecurityManager securityManager) : base(dataService, securityManager) { }
public QfControllerBase(IDataServiceBase <TEntity> dataService, QuickFrameSecurityManager securityManager, IOptions <ViewOptions> viewOptions) { _dataService = dataService; _securityManager = securityManager; _viewOptions = viewOptions.Value; }
/// <summary> /// The constructor for the QFControllerCore class. /// </summary> /// <param name="dataService">The data service used to return data to the views contained within this class.</param> /// <param name="securityManager">The <see cref="QuickFrame.Security.QuickFrameSecurityManager"/> used to apply security to functions within this class.</param> public QfControllerCore(IDataServiceCore <TEntity, TIdType> dataService, QuickFrameSecurityManager securityManager) : base(dataService, securityManager) { }