コード例 #1
0
        public ActionResult <Lamp> Delete(int id)
        {
            var lamp = _lampService.DeleteLamp(id);

            if (lamp == null)
            {
                return(StatusCode(404, "Did not find Lamp with ID " + id));
            }

            return(Ok($"Lamp with Id: {id} is Deleted"));
        }