//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())); }
public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager) { UserManager = userManager; SignInManager = signInManager; _portalService = new InrapporteringsPortalService(new PortalRepository(new ApplicationDbContext())); _errorDecsriber = new CustomIdentityResultErrorDescriber(); }
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); }
public HistoryController() { _portalService = new InrapporteringsPortalService(new PortalRepository(new ApplicationDbContext())); }
public ManageController() { _portalService = new InrapporteringsPortalService(new PortalRepository(new ApplicationDbContext())); _errorDecsriber = new CustomIdentityResultErrorDescriber(); }
public FilesHelper(String StorageRoot) { this.StorageRoot = StorageRoot; _portalRepository = new PortalRepository(db); _portalService = new InrapporteringsPortalService(_portalRepository); }