public FileContentResult TenantImageLogo(Context context) { var log = new SysLogModel(context: context); var(bytes, contentType) = BinaryUtilities.TenantImageLogo( context: context, tenantModel: new TenantModel( context: context, ss: SiteSettingsUtilities.TenantsSiteSettings(context))); log.Finish( context: context, responseSize: bytes.Length); return(new FileContentResult(bytes, contentType)); }
public ActionResult TenantImageLogo() { var context = new Context(); var log = new SysLogModel(context: context); var bytes = BinaryUtilities.TenantImageLogo( context: context, tenantModel: new TenantModel( context: context, ss: SiteSettingsUtilities.TenantsSiteSettings(context))); log.Finish( context: context, responseSize: bytes.Length); return(new FileContentResult(bytes, "image/png")); }