コード例 #1
0
        public IActionResult deleteSubscribe([FromForm] SubscribeDTO s)
        {
            SubscribeManager subscribeManager = new SubscribeManager();
            var flag = subscribeManager.deleteSubscribe(s);

            if (flag == true)
            {
                return(Ok(new JsonCreate()
                {
                    message = Utils.ConstMessage.UPDATE_SUCCESS, data = true
                }));
            }
            else
            {
                return(Ok(new JsonCreate()
                {
                    message = Utils.ConstMessage.UPDATE_FAIL, data = false
                }));
            }
        }