public ActionResult Create(MdlSocietyNGO obj) { if (sig != null) { try { obj.EnterByUser_ID = sig.UserID; MngSocietyNGO mobj = new MngSocietyNGO(); MdlSocietyNGO Mmodel = new MdlSocietyNGO(); MdlFirm Fmodel = new MdlFirm(); Fmodel = mobj.AddSocietyNGO(obj); UtilityClass.AddSession(UtilityClass.UserSession.OrgDocId, Fmodel);//Passing Firm Session Model return(RedirectToAction("CreateSocietyAddress", "Addresss")); } catch { MdlSocietyNGO Smodel = new MdlSocietyNGO(); MngSocietyNGO Sobj = new MngSocietyNGO(); Smodel.BankDistrictList = Sobj.GetAllDistrics(); Smodel.SocietyTypeDrp = Sobj.SocietyTypeDrp(0); Smodel.BanksList = Sobj.GetBankList(0); return(View(Smodel)); } } else { return(RedirectToAction("Index", "Login")); } }
// GET: SocietyNGO/Create // GET: Madrassa/Create public ActionResult Create() { if (sig != null) { MdlSocietyNGO Smodel = new MdlSocietyNGO(); MngSocietyNGO Sobj = new MngSocietyNGO(); Smodel.BankDistrictList = Sobj.GetAllDistrics(); Smodel.SocietyTypeDrp = Sobj.SocietyTypeDrp(0); Smodel.BanksList = Sobj.GetBankList(0); return(View(Smodel)); } else { return(RedirectToAction("Index", "Login")); } }