Exemplo n.º 1
0
        public async Task <IActionResult> Delete([FromRoute] string id)
        {
            var deleted = await _excersiseService.DeleteExcesiseAsync(id);

            if (deleted)
            {
                return(NoContent());
            }

            return(NotFound());
        }