Esempio n. 1
0
        public async Task <IActionResult> Delete(int id)
        {
            try
            {
                await _bikeService.DeleteBikeAsync(id);

                return(Ok());
            }
            catch (NullReferenceException)
            {
                return(NotFound());
            }
        }