예제 #1
0
 public bool CreatePersons(Person person)
 {
     try {
         person.State = ObjectState.Added;
         _rep.AddOperation(person);
         return true;
     }catch(Exception ex){
         var msg = ex.Message;
         return false;
     }
 }
예제 #2
0
 public bool UpdatePersons(Person person)
 {
     try
     {
         person.State = ObjectState.Modified;
         _rep.UpdateOperation(person);
         return true;
     }
     catch (Exception ex)
     {
         var msg = ex.Message;
         return false;
     }
 }