public ActionResult GetTransactionType([FromRoute] Guid IdTransactionType)
        {
            try
            {
                var response = _serv.GetTransactionType(IdTransactionType);

                return(Ok(response));
            }
            catch (Exception ex)
            {
                return(BadRequest($"Ocorreu um erro ao Get o TransactionType {IdTransactionType}: {ex.Message}"));
            }
        }
        // [TypeFilter(typeof(AuthorizeAction), Arguments = new object[] { "Write" })]
        public IActionResult Update(long ID)
        {
            TransactionTypeViewModel model = new TransactionTypeViewModel();

            InitAccessModel(model);
            model.transactionTypes = _interface.GetTransactionType(ID);
            if (model.transactionTypes != null)
            {
                model.TransactionNatureList = new List <SelectListItem>()
                {
                    new SelectListItem {
                        Text = "Sell", Value = "S"
                    },
                    new SelectListItem {
                        Text = "Buy", Value = "B"
                    }
                };
                return(View("Index", model));
            }
            else
            {
                return(View("SummaryView", model));
            }
        }