public IActionResult Trainee() { var model = new TraineeCreateVm(); model.TraineeList = _traineeManager.GetAll(); model.DepartmentLookUpData = _utilityManager.GetDepartmentLookUpData(); return(View(model)); }
public IActionResult Trainee(TraineeCreateVm model) { if (ModelState.IsValid) { var trainee = _mapper.Map <Trainee>(model); bool Issucces = _traineeManager.Add(trainee); if (Issucces) { } //model.TraineeList = _traineeManager.GetAll(); } model.TraineeList = _traineeManager.GetAll(); model.DepartmentLookUpData = _utilityManager.GetDepartmentLookUpData(); return(View(model)); }