public ActionResult Create(MdlFund objform) { MdlFund model = new MdlFund(); MngInfo ObjApp = new MngInfo(); if (sig != null) { try { objform.EnteredByUser_ID = sig.UserID; ObjApp.AddNewFundSourceofOrg(objform); TempData["td_orgid"] = objform.Org_ID; return(RedirectToAction("Index")); } catch { model.GetAllOrg_ID = ObjApp.GetAllOrgIDNName(0); //model.GetRenewalReport_ID = ObjApp.GetRenewalReportsofOrg(); return(View(model)); } } else { return(RedirectToAction("Index", "Login")); } }
public ActionResult Create() { MdlFund model = new MdlFund(); MngInfo ObjApp = new MngInfo(); model.GetAllOrg_ID = ObjApp.GetAllOrgIDNName(0); //model.GetRenewalReport_ID = ObjApp.GetRenewalReportsofOrg(); return(View(model)); }
public ActionResult Edit(long id) { MdlFund obj = new MdlFund(); if (sig != null) { obj = mobj.GetFundtoEdit(id); obj.GetAllOrg_ID = mobj.GetAllOrgIDNName(obj.Org_ID); return(View(obj)); } else { return(RedirectToAction("Index", "Login")); } }
public ActionResult Edit(MdlFund Wmodel) { if (sig != null) { try { // TODO: Add update logic here Wmodel.ModifyByUser_ID = sig.UserID; mobj.UpdateFundSource(Wmodel); return(RedirectToAction("Index")); } catch { return(View()); } } else { return(RedirectToAction("Index", "Login")); } }