public static SupportRequestType ToType(SupportRequestTypeEnum enumValue) { switch (enumValue) { case SupportRequestTypeEnum.ForgotLoginInfo: return(ForgotLoginInfo); case SupportRequestTypeEnum.NewOrganization: return(NewOrganization); case SupportRequestTypeEnum.Other: return(Other); case SupportRequestTypeEnum.ProvideFeedback: return(ProvideFeedback); case SupportRequestTypeEnum.ReportBug: return(ReportBug); case SupportRequestTypeEnum.RequestOrganizationNameChange: return(RequestOrganizationNameChange); case SupportRequestTypeEnum.RequestToChangeUserAccountPrivileges: return(RequestToChangeUserAccountPrivileges); default: throw new ArgumentException(string.Format("Unable to map Enum: {0}", enumValue)); } }
public static SupportRequestType ToType(SupportRequestTypeEnum enumValue) { switch (enumValue) { case SupportRequestTypeEnum.ForgotLoginInfo: return(ForgotLoginInfo); case SupportRequestTypeEnum.HelpWithProjectUpdate: return(HelpWithProjectUpdate); case SupportRequestTypeEnum.NewOrganizationOrGrantAllocation: return(NewOrganizationOrGrantAllocation); case SupportRequestTypeEnum.Other: return(Other); case SupportRequestTypeEnum.ProvideFeedback: return(ProvideFeedback); case SupportRequestTypeEnum.ReportBug: return(ReportBug); case SupportRequestTypeEnum.RequestOrganizationNameChange: return(RequestOrganizationNameChange); case SupportRequestTypeEnum.RequestPermissionToAddProjects: return(RequestPermissionToAddProjects); case SupportRequestTypeEnum.RequestProjectPrimaryContactChange: return(RequestProjectPrimaryContactChange); default: throw new ArgumentException(string.Format("Unable to map Enum: {0}", enumValue)); } }