//
        // GET: /Customer/


        public ActionResult RegenrateOtp(string id)
        {
            var custId    = Convert.ToInt32(Decryption.Decrypt(id, true));
            var otpNumber = _iClaimHelper.RegenrateOtp(custId);

            SendMailCustomer(custId, otpNumber);
            ViewBag.Incorrectlogin = "******";
            var cust = _iCustomerHelper.GetCustomerById(custId);

            return(View("Index", new OTPDto
            {
                CustomerId = cust.CustomerId,
                CustomerName = cust.CustomerName,
            }));
        }
 public async Task <Customer> GetCustomerById(int id)
 {
     return(await WithConnection(async conn =>
     {
         var query = await _customerHelper.GetCustomerById <Customer>(conn, id, _commandText.GetCustomerById);
         return query;
     }));
 }