예제 #1
0
 /// <summary>
 /// Fixed:
 /// </summary>
 public static System.Web.Mvc.ContentResult ApiDonwload(Context context, string guid)
 {
     if (!context.ContractSettings.Attachments())
     {
         return(null);
     }
     return(FileContentResults.DownloadByApi(context: context, guid: guid));
 }
예제 #2
0
 /// <summary>
 /// Fixed:
 /// </summary>
 public static System.Web.Mvc.ContentResult ApiDonwload(Context context, string guid)
 {
     if (!Mime.ValidateOnApi(contentType: context.ContentType))
     {
         return(ApiResults.BadRequest(context: context));
     }
     if (!context.ContractSettings.Attachments())
     {
         return(null);
     }
     return(FileContentResults.DownloadByApi(context: context, guid: guid.ToUpper()));
 }