Exemplo n.º 1
0
        public async Task <IActionResult> Delete(string moniker, int id)
        {
            var res = await _talkService.RemoveTalk(moniker, id);

            switch (res.statusCode)
            {
            case 404:
                return(NotFound(res.message));

            case 400:
                return(BadRequest(res.message));

            case 500:
                return(StatusCode(StatusCodes.Status500InternalServerError, res.message));

            default:
                return(Ok());
            }
        }