Ejemplo n.º 1
0
        /// <summary>
        /// Updates the ECA system's education data with the given updated education.
        /// </summary>
        /// <param name="updatedEduEmp"></param>
        /// <returns></returns>
        public async Task UpdateProfessionEducationAsync(UpdatedPersonEduEmp updatedEduEmp)
        {
            int id     = updatedEduEmp.ProfessionEducationId;
            var eduemp = await Context.ProfessionEducations.FindAsync(id);

            DoUpdateProfessionEducation(updatedEduEmp, eduemp);
        }
Ejemplo n.º 2
0
        private void DoUpdateProfessionEducation(UpdatedPersonEduEmp updatedEduEmp, ProfessionEducation modelToUpdate)
        {
            Contract.Requires(updatedEduEmp != null, "The updatedEduEmp must not be null.");
            throwIfEduEmpNotFound(modelToUpdate, updatedEduEmp.ProfessionEducationId);

            modelToUpdate.ProfessionEducationId = updatedEduEmp.ProfessionEducationId;
            modelToUpdate.Title                       = updatedEduEmp.Title;
            modelToUpdate.Role                        = updatedEduEmp.Role;
            modelToUpdate.DateFrom                    = updatedEduEmp.StartDate;
            modelToUpdate.DateTo                      = updatedEduEmp.EndDate;
            modelToUpdate.OrganizationId              = updatedEduEmp.OrganizationId;
            modelToUpdate.PersonOfEducation_PersonId  = updatedEduEmp.PersonOfEducation_PersonId;
            modelToUpdate.PersonOfProfession_PersonId = updatedEduEmp.PersonOfProfession_PersonId;
            updatedEduEmp.Update.SetHistory(modelToUpdate);
        }
Ejemplo n.º 3
0
 public Task UpdateProfessionEducationAsync(UpdatedPersonEduEmp updatededuemp)
 {
     Contract.Requires(updatededuemp != null, "The updated education must not be null.");
     return(Task.FromResult <object>(null));
 }
Ejemplo n.º 4
0
 public void UpdateProfessionEducation(UpdatedPersonEduEmp updatededuemp)
 {
     Contract.Requires(updatededuemp != null, "The updated education must not be null.");
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Updates the ECA system's profession/education data with the given updated profession/education.
        /// </summary>
        /// <param name="updatedEduEmp"></param>
        public void UpdateProfessionEducation(UpdatedPersonEduEmp updatedEduEmp)
        {
            var eduemp = Context.ProfessionEducations.Find(updatedEduEmp.ProfessionEducationId);

            DoUpdateProfessionEducation(updatedEduEmp, eduemp);
        }