using System.Web.Mvc; namespace Neo.Legitimate.Common { /// /// A controller with a database. /// /// The type of the database. [Authorize] public abstract class Controller : ControllerBase where TDatabase : class { /// /// Initializes a new instance of the class. /// /// The database. protected Controller(TDatabase database) { Database = database; } /// /// Gets or sets the database. /// protected TDatabase Database { get; private set; } } }