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")); } }
// GET: Fund public ActionResult Index() { List <MdlFund> modellist = new List <MdlFund>(); MngInfo obj = new MngInfo(); modellist = obj.GetAllFundsofOrg(Convert.ToInt64(TempData["td_orgid"])); return(View(modellist)); }
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) { MdlAsset obj = new MdlAsset(); mobj = new MngInfo(); if (sig != null) { obj = mobj.GetAssettoEdit(id); obj.GetAllOrg_ID = mobj.GetAllOrgIDNName(obj.Org_ID); return(View(obj)); } else { return(RedirectToAction("Index", "Login")); } }
public ActionResult Edit(MdlAsset Wmodel) { if (sig != null) { try { // TODO: Add update logic here mobj = new MngInfo(); Wmodel.ModifyByUser_ID = sig.UserID; mobj.UpdateAssetofOrg(Wmodel); return(RedirectToAction("Index")); } catch { return(View()); } } else { return(RedirectToAction("Index", "Login")); } }