public IActionResult Post([FromBody] LogInModel model) { var token = SessionLogic.CreateSession(model.Email, model.Password); return(Ok(new TokenModel(token))); }
public IActionResult CreateSession() { var session = _sessionLogic.CreateSession(); return(Ok(session)); }