public IHttpActionResult Delete(int id) { try { _queueRepository.Delete(id); } catch (Exception e) { return(InternalServerError(e)); } return(Ok()); }
public IHttpActionResult DeleteMessages(string name, QueueActionModel model) { _repository.Delete(name, model.Ids); return(Ok()); }