Exemplo n.º 1
0
        public async Task <IActionResult> Delete([FromRoute] int id, [FromRoute] int accountId)
        {
            var response = await _invitationService.DeleteAsync(id, accountId);

            if (!response.IsValid)
            {
                return(BadRequest(response.Message));
            }
            return(Ok(response));
        }