public ActionResult Create(RequirementDocumentViewModel vm)
        {
            if (ModelState.IsValid)
            {
                var newDocument = new RequirementDocument
                {
                    RequirementId = vm.RequirementId,
                    DocumentType  = vm.DocumentType,
                    FileSize      = 0.0
                };

                if (vm.Document != null)
                {
                    var siteSettings      = _settingsService.GetSiteSettings();
                    var blobUploadService = new BlobUploadService(siteSettings.BlobSettings);
                    var blobPath          = blobUploadService.UploadRMSDocument(vm.Document);
                    newDocument.DocumentPath = blobPath;
                    newDocument.FileName     = vm.Document.FileName;
                }

                _requirementDocumentRepository.Create(newDocument);
                _unitOfWork.Commit();
                return(RedirectToAction("Details", "Requirements", new { id = vm.RequirementId }));
            }

            return(View(vm));
        }
        public ActionResult Create(int requirementId)
        {
            var vm = new RequirementDocumentViewModel
            {
                RequirementId = requirementId
            };

            return(View(vm));
        }