public OperationResult Edit(EditEducationExperience command)
        {
            var operation           = new OperationResult();
            var educationExperience = _educationExperienceRepository.Get(command.Id);

            if (educationExperience == null)
            {
                return(operation.Failed(ApplicationMessages.RecordNotFound));
            }


            educationExperience.Edit(command.UniversityName, command.EducationDegree, command.EducationCourse, command.EducationDate, command.Description);

            _educationExperienceRepository.SaveChanges();

            return(operation.Succedded());
        }
Ejemplo n.º 2
0
        public JsonResult OnPostEdit(EditEducationExperience command)
        {
            var result = _educationExperienceApplication.Edit(command);

            return(new JsonResult(result));
        }