public string Convert(int?sourceMember, ResolutionContext context) { if (sourceMember == null) { return(null); } return(LocationType.GetAll <LocationType>().FirstOrDefault(m => m.Value == sourceMember)?.Name); }