public ActionResult MyAccountAction(AccountModel account) { AccountBal bal = new AccountBal(); bal.UserId = Convert.ToInt32(Session["loginid"]); //bal.AccountNo = account.AccountNo; //bal.IfscCode = account.IfscCode; AccountDal dal = new AccountDal(); bool status = dal.MyAccount(bal, out string IFSC, out int Acno); AccountModel model = new AccountModel(); if (status) { //bal.AccountNo = account.AccountNo; //bal.IfscCode = account.IfscCode; model.AccountNo = Acno; model.IfscCode = IFSC; model.UserId = bal.UserId; } return(View(model)); }