public HttpResponseMessage Eject(int id)
        {
            ResponseModel queResponse = new ResponseModel();

            queResponse.Success = _playHistory.SetTrackToStop(id);
            var response = Request.CreateResponse(HttpStatusCode.OK);

            response.Content = new StringContent(JsonConvert.SerializeObject(queResponse), System.Text.Encoding.UTF8, "application/json");

            return(response);
        }
 public ActionResult StopTrack(int ID)
 {
     using (var context = new Uow(this.context))
     {
         var repos = new RepositoryPlayHistory(context);
         if (repos.SetTrackToStop(ID))
         {
             Success("Removed", "Track Removed from Queue.");
         }
         else
         {
             Warning("Caleb Detected", "The Caleb Detection system is active");
         }
         return(RedirectToAction("Index", "PlayHistory"));
     }
 }