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