public IActionResult Delete(int id) { if (_notificationService.Remove(_notificationService.Get(id))) { return(Ok()); } return(BadRequest()); }