Example #1
0
        public async Task <ActionResult> DeleteEntity(int id)
        {
            try
            {
                //Need to check if exist for deletion
                await _carsService.DeleteEntity(id);

                return(Ok());
            }
            catch (Exception e)
            {
                //Need to change this somehow
                Console.WriteLine(e);
                throw;
            }
        }