a099d68915
Initial Release; Includes Database and MVC refactoring
33 lines
649 B
C#
33 lines
649 B
C#
using Disco.Models.Repository;
|
|
using Disco.Services.Authorization;
|
|
using Disco.Services.Users;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Disco.Services.Web
|
|
{
|
|
public abstract class WebViewPage<T> : System.Web.Mvc.WebViewPage<T>
|
|
{
|
|
|
|
public AuthorizationToken Authorization
|
|
{
|
|
get
|
|
{
|
|
return UserService.CurrentAuthorization;
|
|
}
|
|
}
|
|
|
|
public User CurrentUser
|
|
{
|
|
get
|
|
{
|
|
return UserService.CurrentUser;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|