public void Eliminar(TipoServicioRequest request) { try { var bc = new TipoServicioComponent(); //var especie = bc.Find(id); bc.Remove(request.TipoServicio); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message }; throw new HttpResponseException(httpError); } }
public void Remove(TipoServicio tipoServicioComponent) { var bc = new TipoServicioComponent(); bc.Remove(tipoServicioComponent); }