public IActionResult Save(NewViewModel model)
        {
            model.Options = BuildTypes();

            if (!ModelState.IsValid)
            {
                return(View("New", model));
            }

            var transactionType = new TransactionType()
            {
                Name   = model.Name,
                Credit = model.Type.Equals("C") ? true : false
            };

            var result = _transactionTypeService.New(transactionType);

            if (result.HasErrors())
            {
                model.Message = result.GetFailure();
                return(View("New", model));
            }

            return(RedirectToAction("Index"));
        }