private string ParseName(string actorId) { MockEntity currentActor = MockEntities.FirstOrDefault(y => y.Id == actorId); return(currentActor ? currentActor.Name : "{ Undefined }"); }