예제 #1
0
        public IActionResult DeleteItemsById(int id)
        {
            var lang = Request.Headers["Authorization"];

            if (lang == "key")
            {
                _newsItemService.DeleteItemsById(id);
                return(NoContent());
            }
            else
            {
                return(StatusCode(401, "Key is unauthorized"));
            }
        }