public ActionResult AddExperience(PI_Neoxam_GRH.Domain.Enities.experience experience) { PI_Neoxam_GRH.Domain.Enities.experience experienceDomain = new PI_Neoxam_GRH.Domain.Enities.experience() { addressLine1 = experience.addressLine1, addressLine2 = experience.addressLine2, city = experience.city, Company_Name = experience.Company_Name, country = experience.country, cv1_id = experience.cv1_id, Department = experience.Department, Duration = experience.Duration, End_Date = experience.End_Date, Role = experience.Role, Sector = experience.Sector, Start_Date = experience.Start_Date, state = experience.state, Subject = experience.Subject, zipCode = experience.zipCode }; experienceService.Add(experienceDomain); experienceService.Commit(); return(RedirectToAction("AddProfileInformations")); }
public async Task <IActionResult> Add(ExperienceAddDto experienceAddDto) { if (ModelState.IsValid) { await _experienceService.Add(experienceAddDto, "Hasan Erdal"); return(RedirectToAction("Index")); } return(View(experienceAddDto)); }
public JsonResult storeAdd(Experience experience) { _experienceService.Add(experience); return(Json("Başarıyla eklendi")); }
public IActionResult Add(Experience exp) { var result = _experienceService.Add(exp); return result.Success ? Ok(result) : BadRequest(result.Message); }