Esempio n. 1
0
 public async Task <IActionResult> GetInvitations(int userId)
 {
     return(Ok(await _service.GetInvitations(userId)));
 }
        public async Task <IActionResult> GetInvitations([FromQuery] InvitationParameters guestlistParameters)
        {
            var result = await invitationService.GetInvitations(guestlistParameters);

            return(StatusCode((int)result.Code, result.Value));
        }
 [HttpGet] //GET localhost/invitations
 public async Task <IActionResult> Get()
 {
     return(Ok(await _invitationService.GetInvitations()));
 }