public Profile GetProfile_Linq(string id) { if (string.IsNullOrEmpty(id)) { return(null); } var context = new TSEContext(); var existingProfile = context.ADRIAN_VEGA_ACEVEDO(id).ToList(); if (existingProfile?.Count > 0) { return(ProfileFactory.GetProfile(existingProfile[0])); } else { return(null); } }