public async Task <IActionResult> Create([Bind("Name,Id")] PaymentTypeEntity paymentTypeEntity)
        {
            if (ModelState.IsValid)
            {
                await _paymentTypeRepository.AddAsync(paymentTypeEntity);

                return(RedirectToAction(nameof(Index)));
            }
            return(View(paymentTypeEntity));
        }