public async Task <IActionResult> GetExamSchedule([FromBody] ExamScheduleRequestModel requestModel) { try { _logger.LogInformation("Request: " + requestModel); var result = await _examScheduleService.Get(requestModel); _logger.LogInformation("Response: " + requestModel); return(Ok(result)); } catch (Exception ex) { _logger.LogError("Exception: " + ex); return(BadRequest(ex)); } }
// GET: ExamSchedule/Details/5 public ActionResult Details(int id) { ExamSchedule examSchedule = examScheduleService.Get(id); return(View(examSchedule)); }