public IActionResult GetInvitebycode(string code) { Result <IEnumerable <Invite> > result = _inviteService.getCodeById(code); return(new JsonResult(result)); }