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)); }
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); }
/// <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)); }
private ProfessionEducation DoCreateProfessionEducation(NewPersonEduEmp personEduEmp, Person person) { throwIfPersonEntityNotFound(person, personEduEmp.PersonId); return(personEduEmp.AddProfessionEducation(person)); }
/// <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)); }