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")); } }
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")); } }