public IActionResult Login([FromQuery] string email, [FromQuery] string password) { Administrator administrator = this.administratorLogic.GetByEmailAndPassword(email, password); string token = sessionLogic.GenerateToken(administrator); return(Ok(new TokenModelOut(token))); }