public void CleanUp() { if (addedShowingId > 0) { _services.Remove(addedShowingId); } }
public IHttpActionResult Delete([FromBody] ShowingDto showing) { _showingService.Remove(showing.Id); return(Json(true)); }
/// <summary> /// Deletes the showing. /// </summary> /// <param name="model"></param> public void Delete(Showing model) { _showingService.Remove(model.Id); }