/// <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)); }
/// <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())); }