Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TempData["ChildObjectId"] = SelectedID;
- return Redirect(MasterObjectControllerCreationURL);
- if (TempData.ContainsKey("ChildObjectId"))
- {
- ViewData["ChildObject"] = _context.ChildObject.Include(x => x.SubObject).Where(x => x.ChildObjectId == Convert.ToInt32(TempData["ChildObjectId"])).FirstOrDefault();
- TempData.Remove("ChildObjectId");
- }
- if (ViewData.ContainsKey("ChildObject"))
- {
- Set field variables for the fields we want.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement