예제 #1
0
        public bool Save(Employee employee)
        {
            var person = EmployeeMapper.ToEntity(employee);

            if (person.Id != null)
            {
                _peopleRepository.Update(person);
            }
            else {
                _peopleRepository.Add(person);
            }

            return person.Id != null;
        }
예제 #2
0
 public bool Save(Employee employee)
 {
     throw new NotImplementedException();
 }