예제 #1
0
        public IActionResult DeactivateCampaign(int id, [FromBody] Campaign campaign)
        {
            var sql = new SQL(_config.GetConnectionString("SQLConnnection"));

            sql.DeactivateCampaign(id);

            return(Ok());
        }
        public IActionResult DeactivateCampaign(int id)
        {
            var sql         = new SQL(connectionString: _config.GetConnectionString("Storage"));
            var batchExists = sql.DeactivateCampaign(id);

            if (batchExists)
            {
                return(Ok());
            }
            return(NotFound());
        }