public async Task <IActionResult> Reject(ThesisSaveViewModel model)
        {
            if (ModelState.IsValid)
            {
                await _thesisService.UpdateThesis(model);

                return(RedirectToAction(nameof(ViewAll)));
            }
            else
            {
                return(Content("Error saving form"));
            }
        }
Ejemplo n.º 2
0
 public async Task UpdateThesis(ThesisSaveViewModel model)
 {
     var thesis = _mapper.Map <Thesis>(model);
     await _thesisDAL.UpdateThesis(thesis);
 }