public ActionResult Register(string ssn, string firstname, string lastname, string dob, string address, long phno, string email)
 {
     if (Session["bankerid"] == null)
     {
         return(Redirect("/HomePage/Index"));
     }
     else
     {
         var c = new CustomerDetails();
         c.firstName   = firstname;
         c.lastName    = lastname;
         c.dateOfBirth = dob;
         c.address     = address;
         c.phone       = phno;
         c.email       = email;
         c.cid         = ssn;
         var b = new BankerHelper();
         if (b.CheckCreditScore(c))
         {
             b.RegisterCustomer(c);
             ViewData["RegisterMessage"] = "Successfully Registered";
             return(View("RegisterCustomer"));
         }
         else
         {
             ViewData["RegisterMessage"] = "Not a Eligible Customer";
             return(View("RegisterCustomer"));
         }
     }
 }
        public ActionResult AddAccountData(string cid, double amount, string accountType)
        {
            if (Session["bankerid"] == null)
            {
                return(Redirect("/HomePage/Index"));
            }
            else
            {
                var b = new BankerHelper();
                var c = new CustomerDetails();
                var d = new CustomerDetails();

                c.cid = cid;
                d.cid = b.FetchSSN(c);
                if (b.CheckCreditScore(d))
                {
                    var a = new Accounts();
                    c.cid         = cid;
                    a.accountType = accountType;
                    a.balance     = amount;
                    b             = new BankerHelper();
                    TempData["AccountMessage"] = b.AddAccount(c, a);
                    return(Redirect("/Banker/AddAccount"));
                }
                else
                {
                    TempData["AccountMessage"] = "Customer is not eligible";
                    return(Redirect("/Banker/AddAccount"));
                }
            }
        }