public ActionResult AddStageCheck(AddStageCheckViewModel viewModel) { StageCheck stageCheck = new StageCheck() { Date = viewModel.CheckDate, InstructorId = viewModel.InstructorId, PilotId = viewModel.PilotId, StageName = viewModel.StageName }; _dataService.AddPilotStageCheck(stageCheck); return(PilotReview(viewModel.PilotId)); }
public void AddPilotStageCheck(StageCheck stageCheck) { _repository.Add <StageCheck>(stageCheck); _repository.UnitOfWork.SaveChanges(); }