コード例 #1
0
 public IHttpActionResult Download(Dictionary <string, object> SearchData)
 {
     try
     {
         string ServerReportPath = Lib.GetReportPath(SearchData["comp_code"].ToString());
         string ServerImagePath  = Lib.GetImagePath(SearchData["comp_code"].ToString());
         using (DocService obj = new DocService())
             return(Ok(obj.Download(SearchData, ServerImagePath, ServerReportPath)));
     }
     catch (Exception Ex)
     {
         return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.BadRequest, Ex.Message.ToString())));
     }
 }