public ActionResult <ApplicationExistedViewModel> AddApplication([FromBody] AddApplicationViewModel applicationView) { try { string id = User.GetUserId(); var studentId = _studentService.GetStudentByUserId(id).Id; var application = ApplicationMapper.ToActualObjectWithStudentId(applicationView, studentId); var addApplicationResponse = _applicationService.AddApplication(application); var applicationExisted = new ApplicationExistedViewModel() { ApplicationExisted = addApplicationResponse }; return(Ok(applicationExisted)); } catch (Exception e) { return(BadRequest(e)); } }