Pinku

Pinku

  • 1.4k
  • 308
  • 46.6k

How to create download option in api with csharp

Nov 6 2019 6:25 AM
public virtual JPResponse<string> GetResumeByApplicationID(INeo neo, string applicationID)
{
var response = new JPResponse<string>();
try
{
MXResumeWordDoc resumeWordDoc = new MXResumeWordDoc();
var IsResumeLoaded = resumeWordDoc.LoadResumeWordDocByDID(neo as Neo, applicationID);
if (IsResumeLoaded)
{
string fileExtension = System.IO.Path.GetExtension(resumeWordDoc.Elements.FileName.Value).ToLower();
if (resumeWordDoc.Elements.FileName != null)
{
//if the above condition satisfy i want to create a download option here.
How can I do it??
}
}
response.Results.Add(IsResumeLoaded.ToString());
}
catch (Exception ex)
{
neo.SendInformationalMXM("ResumeService", ex.Message, ex, this, "ResumeService.GetResume");
throw ex;
}
return response;
}

Answers (2)