public HttpResponseMessage Delete(ApiAgentModel agent) { if (_agentManager.Delete(agent)) { return(new HttpResponseMessage(HttpStatusCode.OK)); } return(new HttpResponseMessage(HttpStatusCode.BadRequest)); }
public void Delete(int id) { _agentManager.Delete(id); }