Exemple #1
0
        public JsonResult UpdateEducation(Domain.Models.EducationViewModel.JobSeekerEducationViewModel jobSeekerEducationViewModel)
        {
            var response = new HustlersResponse <Domain.Models.EducationViewModel.JobSeekerEducationViewModel>();

            //Check Validations
            educationService.Edit(jobSeekerEducationViewModel);
            response.Messages = "Education Updated Successfully";
            response.Status   = "ok";
            return(Json(response));
        }
        public ActionResult Edit([FromRoute] int systemUserId, [FromBody] EditedEducationViewModel model)
        {
            var education = new EditedUserEducationModel()
            {
                DateAttendedEnd   = model.DateAttendedEnd,
                DateAttendedStart = model.DateAttendedStart,
                Degree            = model.Degree,
                Id = model.Id,
                IsCurrentEducation = model.IsCurrentEducation,
                ModeOfStudy        = model.ModeOfStudy,
                School             = model.School,
                SystemUserId       = systemUserId
            };

            _educationService.Edit(education);
            return(Ok(MessageHelper.Success("The education has been updated.")));
        }
 public ActionResult Edit(int ID)
 {
     return(View(_educationService.Edit(ID)));
 }