public HttpResponseMessage GetById(int id) { try { var result = Business.TipoVeiculo.Instance().GetById(id); return(ResponsePersonalize.CreateReponseSuccess(this.Request, result)); } catch (TryExceptionPersonalize ex) { return(ex.TryExceptionHttp()); } }
public HttpResponseMessage Get() { try { var result = Business.Fabricante.Instance().Get(null); return(ResponsePersonalize.CreateReponseSuccess(this.Request, result)); } catch (TryExceptionPersonalize ex) { return(ex.TryExceptionHttp()); } }