Example #1
0
 public static Person GetPerson(string name) {
     var person = Kernel.Instance.MB3ApiRepository.RetrievePerson(name);
         if (person == null || person.Name == null) {
             person = new Person(GetPersonId(name), name.Trim());
         }
         return person;
 }
Example #2
0
 public static Person GetPerson(string name)
 {
     Guid id = GetPersonId(name);
     var person = Kernel.Instance.ItemRepository.RetrieveItem(id) as Person;
         if (person == null || person.Name == null) {
             person = new Person(id, name.Trim());
             Kernel.Instance.ItemRepository.SaveItem(person);
         }
         return person;
 }