public bool UploadUserGuide()
        {
            UserGuidUpload userGuidUpload = new UserGuidUpload();
            var            streamProvider = new MultipartMemoryStreamProvider();
            var            strByteArray   = HttpContext.Current.Request.Form["application/json"];
            var            postedFile     = HttpContext.Current.Request.Files["PostedFile"];

            if (!string.IsNullOrEmpty(strByteArray) && postedFile != null && postedFile.ContentLength > 0)
            {
                using (BinaryReader binaryReader = new BinaryReader(postedFile.InputStream))
                {
                    int bytesToRead = postedFile.ContentLength;
                    userGuidUpload.DocumentName = postedFile.FileName;
                    userGuidUpload.FileContent  = binaryReader.ReadBytes(bytesToRead);
                }
            }

            return(_userGuideUploadCommands.UploadUserGuide(userGuidUpload));
        }
 public bool GenerateKnowledgeDetail(UserGuidUpload userGuidUpload)
 {
     _userGuideUploadCommands.ActiveUser = Models.ApiContext.ActiveUser;
     return(_userGuideUploadCommands.GenerateKnowledgeDetail(userGuidUpload));
 }