public DocumentsController(
            IDocumentsService documentsService,
            ICandidatesService candidatesService,
            IFileExtensionsService fileExtensionsService,
            IDocumentCategoriesService documentCategoriesService,
            IJobApplicationService jobApplicationService,
            IMimeMappingService mimeMappingService,
            UserManager <ApplicationUser> userManager)
        {
            this.documentsService          = documentsService;
            this.candidatesService         = candidatesService;
            this.fileExtensionsService     = fileExtensionsService;
            this.documentCategoriesService = documentCategoriesService;
            this.jobApplicationService     = jobApplicationService;
            this.mimeMappingService        = mimeMappingService;
            this.userManager = userManager;

            this.allowedExtensions = this.fileExtensionsService.GetAll();
            this.allowedCategories = this.documentCategoriesService.GetAll <CategoriesDropDownViewModel>();
        }
 public DocumentCategoriesController(IDocumentCategoriesService documentCategoriesService)
 {
     this.documentCategoriesService = documentCategoriesService;
 }