コード例 #1
0
        public IActionResult Delete(string id)

        {
            try

            {
                var result = db.Delete(id);

                if (result == 0)

                {
                    return(NotFound(result));
                }

                return(Ok(result));
            }

            catch (Exception)

            {
                return(BadRequest(id));
            }
        }