public async Task<IActionResult> Create(Session session) { if (await _sessionService.checkSessionExist(session)) { return RedirectToAction("Create", new { Message = MessageNote.Exist }); } var addSession = new Session { SessionID = Guid.NewGuid(), SessionName = session.SessionName }; await _sessionService.createSession(addSession); return RedirectToAction("Detail", new { id = addSession.SessionID, Message = MessageNote.Exist }); }