public HttpResponseMessage Put(TipoPagamentoViewModel tipoPagamentoViewModel)
        {
            if (ModelState.IsValid)
            {
                _tipoPagamentoApp.Update(tipoPagamentoViewModel);

                return Request.CreateResponse(HttpStatusCode.Created, "Cadastro efetuado com sucesso!");
            }
            return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
        }
        public HttpResponseMessage Post(TipoPagamentoViewModel tipoPagamentoViewModel)
        {
            if (ModelState.IsValid)
            {
                _tipoPagamentoApp.Add(tipoPagamentoViewModel);

                return Request.CreateResponse(HttpStatusCode.Created, tipoPagamentoViewModel);
            }
            return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
        }