public TVTPerson GetPersonByName(string name) { var result = PersonData.FirstOrDefault(x => x.FullName != null ? x.FullName.Trim() == name.Trim() : false); if (result != null) { return(result); } else { return(PersonData.FirstOrDefault(x => x.FakeFullName != null ? x.FakeFullName.Trim() == name.Trim() : false)); } }
public TVTPerson GetPersonByTmdbId(int tmdbId) { return(PersonData.FirstOrDefault(x => x.TmdbId == tmdbId)); }
public TVTPerson GetPersonById(string id) { return(PersonData.FirstOrDefault(x => x.Id == id)); }