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

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