public static MvcHtmlString Upload(this HtmlHelper htmlHelper,
                                           string formDataName)
        {
            UploadFormData data = new UploadFormData
            {
                FormDataName = formDataName,
            };

            return(htmlHelper.Partial("_FileUpload", data));
        }
        public static MvcHtmlString Upload(this HtmlHelper htmlHelper,
                                           string formDataName,
                                           string jsDoneFunction)
        {
            UploadFormData data = new UploadFormData
            {
                FormDataName   = formDataName,
                ActionName     = null,
                JsDoneFunction = jsDoneFunction
            };

            return(htmlHelper.Partial("_FileUpload", data));
        }
 public static MvcHtmlString Upload(this HtmlHelper htmlHelper, UploadFormData data)
 {
     return(htmlHelper.Partial("_FileUpload", data));
 }