示例#1
0
        public async Task <ActionResult> Delete([FromBody] int id)
        {
            try
            {
                await carManager.DeleteCarAsync(id);

                return(Ok(id));
            }
            catch (CarException ex)
            {
                return(BadRequest(ex.Message));
            }
        }