public ActionResult AccountsearchforExecutive(AccountSearch cu) { if (!ModelState.IsValid) { CreateCustomerAccounts2porDbData obj = new CreateCustomerAccounts2porDbData(); int temp_id = cu.Customer_Id; string temp_search = cu.Account_Search; int check = obj.checkAccount(temp_id, temp_search); if (check > 0) { return(RedirectToAction("AccountsearchExecutive", new { data = temp_id, mode = temp_search })); } else { if (Request.HttpMethod == "POST") { TempData["AlertMessage"] = "Requested account is not present in system."; ModelState.Clear(); } return(View()); } } return(View()); }
public ActionResult AccountStatement(AccountSearch acc) { if (!ModelState.IsValid) { CreateCustomerAccounts2porDbData obj = new CreateCustomerAccounts2porDbData(); int temp_id = acc.AccountID; int check = obj.checkAccount(temp_id, "ByAccountID"); if (check > 0) { int cycle = Convert.ToInt32(acc.transaction_no); return(RedirectToAction("viewAccountStatement", new { Temp_id = temp_id, Cycle = cycle })); } else { if (Request.HttpMethod == "POST") { TempData["AlertMessage"] = "Requested account is not present in the system."; ModelState.Clear(); } return(View()); } } return(View()); }