コード例 #1
0
        public async Task <IActionResult> Delete([FromRoute] int id)
        {
            try
            {
                var platform = await _categories.DeleteAsync(id);

                return(NoContent());
            }
            catch (Exception)
            {
                return(NotFound());
            }
        }