Пример #1
0
 public Task <ProfessionEducation> CreateProfessionEducationAsync(NewPersonEduEmp eduemp)
 {
     Contract.Requires(eduemp != null, "The education entity must not be null.");
     Contract.Ensures(Contract.Result <Task <ProfessionEducation> >() != null, "The education entity returned must not be null.");
     return(Task.FromResult <ProfessionEducation>(null));
 }
Пример #2
0
 public ProfessionEducation CreateProfessionEducation(NewPersonEduEmp eduemp)
 {
     Contract.Requires(eduemp != null, "The education entity must not be null.");
     Contract.Ensures(Contract.Result <ProfessionEducation>() != null, "The education entity returned must not be null.");
     return(null);
 }
Пример #3
0
        /// <summary>
        /// Creates a new profession/education in the ECA system.
        /// </summary>
        /// <param name="personEduEmp"></param>
        /// <returns></returns>
        public async Task <ProfessionEducation> CreateProfessionEducationAsync(NewPersonEduEmp personEduEmp)
        {
            var person = await this.Context.People.FindAsync(personEduEmp.PersonId);

            return(DoCreateProfessionEducation(personEduEmp, person));
        }
Пример #4
0
 private ProfessionEducation DoCreateProfessionEducation(NewPersonEduEmp personEduEmp, Person person)
 {
     throwIfPersonEntityNotFound(person, personEduEmp.PersonId);
     return(personEduEmp.AddProfessionEducation(person));
 }
Пример #5
0
        /// <summary>
        /// Creates a new profession/education in the ECA system.
        /// </summary>
        /// <param name="personEduEmp"></param>
        /// <returns></returns>
        public ProfessionEducation CreateProfessionEducation(NewPersonEduEmp personEduEmp)
        {
            var person = this.Context.People.Find(personEduEmp.PersonId);

            return(DoCreateProfessionEducation(personEduEmp, person));
        }