public async Task <IActionResult> GetInvitationById(int invitationId) { var result = await invitationService.GetInvitationById(invitationId); return(StatusCode((int)result.Code, result.Value)); }