- public ActionResult chartofaccountedit(String name)
- {
- treeviewlist();
- chartofaccount data=new chartofaccount();
-
- if (name == null)
- {
-
-
- return View("chartofaccountscreate");
- }
- else
- {
-
- data = mse.chartofaccounts.SingleOrDefault(x => x.AccountName == name);
-
- if (data == null)
- {
- return View("chartofaccountscreate");
- }
- else
- {
-
-
-
- return RedirectToAction("chartofaccountscreate", "chartofaccounts", data);
- }
-
- }
-
- }
-
-
- public ActionResult chartofaccountscreate(chartofaccount data)
- {
-
- treeviewlist();
- chartofaccount ca = new chartofaccount();
- ca.AccountName = data.AccountName;
- return View(ca);
- }
when i redirecting to the create view is not displaying what will be the problem