//private string UrlBase = "/Files/somefiles/";
        //String DeleteURL = "/FileUpload/DeleteFile/?file=";
        //String DeleteType = "GET";

        public FileUploadController()
        {
            filesHelper = new FilesHelper(StorageRoot);
            //filesHelper = new FilesHelper(DeleteURL, DeleteType, StorageRoot, UrlBase, tempPath, serverMapPath);

            _portalService =
                new InrapporteringsPortalService(new PortalRepository(new ApplicationDbContext()));
        }
Exemple #2
0
 public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     UserManager    = userManager;
     SignInManager  = signInManager;
     _portalService =
         new InrapporteringsPortalService(new PortalRepository(new ApplicationDbContext()));
     _errorDecsriber = new CustomIdentityResultErrorDescriber();
 }
Exemple #3
0
 public FilesHelper(String DeleteURL, String DeleteType, String StorageRoot, String UrlBase, String tempPath, String serverMapPath)
 {
     this.DeleteURL     = DeleteURL;
     this.DeleteType    = DeleteType;
     this.StorageRoot   = StorageRoot;
     this.UrlBase       = UrlBase;
     this.tempPath      = tempPath;
     this.serverMapPath = serverMapPath;
     _portalRepository  = new PortalRepository(db);
     _portalService     = new InrapporteringsPortalService(_portalRepository);
 }
Exemple #4
0
 public HistoryController()
 {
     _portalService =
         new InrapporteringsPortalService(new PortalRepository(new ApplicationDbContext()));
 }
Exemple #5
0
 public ManageController()
 {
     _portalService =
         new InrapporteringsPortalService(new PortalRepository(new ApplicationDbContext()));
     _errorDecsriber = new CustomIdentityResultErrorDescriber();
 }
Exemple #6
0
 public FilesHelper(String StorageRoot)
 {
     this.StorageRoot  = StorageRoot;
     _portalRepository = new PortalRepository(db);
     _portalService    = new InrapporteringsPortalService(_portalRepository);
 }