コード例 #1
0
        public IActionResult Delete(int id)
        {
            try
            {
                //Prato model = _service.GetOne(id);

                _service.Delete(id);

                return(NoContent());
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }