Beispiel #1
0
        public async Task <IActionResult> GetAllInvites([FromQuery] InviteParams inviteParams)
        {
            var invites = await _repo.GetInvites(inviteParams);

            var invitesToReturn = _mapper.Map <IEnumerable <InviteDetailsMultipleDto> >(invites);

            Response.AddPagination(invites.CurrentPage, invites.PageSize, invites.TotalCount, invites.TotalPages);
            return(Ok(invitesToReturn));
        }