コード例 #1
0
        [HttpPut("{id}")] // PUT

        public ActionResult <DbCombo> Edit([FromBody] DbCombo editCombo, int id)
        {
            try
            {
                editCombo.Id = id;
                return(Ok(_comboService.Edit(editCombo)));
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }