public async Task <ActionResult <ReferralPrintRequestResponse> > ReprintSupport(string fileId, string supportId, SupportReprintReason reprintReason) { var result = await messagingClient.Send(new ReprintSupportCommand { FileId = fileId, SupportId = supportId, ReprintReason = EnumDescriptionHelper.GetEnumDescription(reprintReason), RequestingUserId = currentUserId }); return(Ok(new ReferralPrintRequestResponse { PrintRequestId = result })); }
public void ChangeFormLanguage(Localizations newLocalization) { LanguageSettings LS = new LanguageSettings(); LS.SetCulture(newLocalization); var resources = new ComponentResourceManager(typeof(Main)); CultureInfo newCultureInfo = new CultureInfo(EnumDescriptionHelper.GetEnumDescription(newLocalization)); foreach (Control c in this.Controls) { resources.ApplyResources(c, c.Name, newCultureInfo); } resources.ApplyResources(this, "$this", newCultureInfo); }