Beispiel #1
0
        public async Task <IActionResult> DeleteTutorial([FromRoute] Guid id)
        {
            Guid.TryParse(User.FindFirst("id")?.Value, out var userId);

            var deleted = await _tutorialService.DeleteTutorialAsync(id, userId);

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