Ejemplo n.º 1
0
        public virtual async Task <ActionResult> Edit(EditInterviewViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                return(View(viewModel));
            }
            viewModel.Brief = viewModel.Brief.ToSafeHtml();
            viewModel.Body  = viewModel.Body.ToSafeHtml();
            await _interviewService.EditAsync(viewModel);

            await _unitOfWork.SaveAllChangesAsync(); return(RedirectToAction(MVC.Interview.List(viewModel.ApplicantId)));
        }
Ejemplo n.º 2
0
        public async Task EditAsync(EditInterviewViewModel viewModel)
        {
            var interview = await _interviews.FirstAsync(a => a.Id == viewModel.Id);

            _mappingEngine.Map(viewModel, interview);
        }
Ejemplo n.º 3
0
 public async Task <ActionResult> EditInterview(EditInterviewViewModel model)
 {
     //Do code here
     throw new NotImplementedException();
 }