public async Task<IActionResult> Detail(Guid? Id, MessageNote? message = null) { if (Id == null) { return NotFound(); } ViewData["Exist"] = message == MessageNote.Exist ? "New Session Added; Here is the Detail" : message == MessageNote.Update ? "Session Updated; Here is the Detail" : ""; var getSession = await _sessionService.getSessionById(Id); return View(getSession); }