/// <summary>
        /// Create Intial Previews for the Bootstrap Dialog View
        /// </summary>
        /// <param name="url"></param>
        /// <returns></returns>
        public string InitialPreviews(UrlHelper url)
        {
            FileUploadJsonViewModel vm = FileUploadJsonViewModel.Create();

            foreach (var file in UploadList)
            {
                vm.AddFile(url, file.Id, file.FormId, file.Url, file.Type, file.Size, UploadProperty.StandardName);
            }
            var toWrite = JsonConvert.SerializeObject(vm.initialPreviewConfig);

            return(toWrite);
        }
 /// <summary>
 /// Convert Types from HTML to Bootstrap Dialog Viewbox
 /// </summary>
 /// <returns>A list of converted types</returns>
 public IEnumerable <string> ConvertTypes()
 {
     return(UploadList.Select(upload => FileUploadJsonViewModel.ConvertType(upload.Type)));
 }