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")); } }
public ActionResult GoverningBodyAlteration(MdlPartner model) { if (sig != null) { try { model.EnterByUser_ID = sig.UserID; MngFirm mobj = new MngFirm(); MdlPartner Pmodel = new MdlPartner(); MdlFirm Fmodel = new MdlFirm(); Fmodel = mobj.InsertNGOSocietyFormEinfo(model); UtilityClass.AddSession(UtilityClass.UserSession.OrgDocId, Fmodel);//Passing Orgdocid to partner Session Model return(RedirectToAction("SocietyGoverningBodyAlterationList", "Partner")); } catch { MdlPartner Pmodel = new MdlPartner(); MngFirm mobj = new MngFirm(); Pmodel.GetAllOrgId = mobj.GetAllOrgDocIdForNGOSociety(0); return(View(Pmodel)); } } else { return(RedirectToAction("Index", "Login")); } }
public ActionResult FormE(MdlPartner model) { var sig = UtilityClass.GetUserSession(UtilityClass.UserSession.UserSessions); if (sig != null) { try { model.EnterByUser_ID = sig.UserID; MngFirm mobj = new MngFirm(); MdlPartner Pmodel = new MdlPartner(); long ID = mobj.InsertFormEinfo(model); MdlFirm Fmodel = new MdlFirm(); Fmodel.OrgDocID = ID; UtilityClass.AddSession(UtilityClass.UserSession.OrgDocId, Fmodel);//Passing Orgdocid to partner Session Model return(RedirectToAction("FormEPartner", "Partner")); } catch { MdlPartner Pmodel = new MdlPartner(); MngFirm mobj = new MngFirm(); Pmodel.GetAllOrgId = mobj.GetAllOrgDocId(0); return(View(Pmodel)); } } else { return(RedirectToAction("Index", "Login")); } }
public ActionResult Create(MdlFirm obj) { var sig = UtilityClass.GetUserSession(UtilityClass.UserSession.UserSessions); if (sig != null) { try { string[] strs = obj.BusinessType_IDstring.Split(','); ArrayList al = new ArrayList(); al.AddRange(strs); obj.BussinessTypeArry = strs; obj.EnterByUser_ID = sig.UserID; MngFirm mobj = new MngFirm(); MdlFirm FSmodel = new MdlFirm(); FSmodel = mobj.AddOldFirmData(obj); UtilityClass.AddSession(UtilityClass.UserSession.OrgDocId, FSmodel);//Passing Firm Session Model return(RedirectToAction("Create", "Addresss")); } catch { //TempData["message"] = ex.InnerException.Message.ToString(); MdlFirm Fmodel = new MdlFirm(); MngFirm mobj = new MngFirm(); Fmodel.BankDistrictList = mobj.GetAllDistrics(); return(View(Fmodel)); } } else { return(RedirectToAction("Index", "Login")); } }
public ActionResult Create(MdlMadrassa obj) { if (sig != null) { try { obj.EnterByUser_ID = sig.UserID; MngMadrassa mobj = new MngMadrassa(); MdlMadrassa Mmodel = new MdlMadrassa(); MdlFirm FSmodel = new MdlFirm(); FSmodel = mobj.AddMadrassaData(obj); UtilityClass.AddSession(UtilityClass.UserSession.OrgDocId, FSmodel);//Passing Firm Session Model // UtilityClass.AddMadrassaSession(UtilityClass.UserSession.OrgDocId, Mmodel);//Passing Firm Session Model return(RedirectToAction("CreateMadrassaAddress", "Addresss")); } catch (Exception ex) { MdlMadrassa Mmodel = new MdlMadrassa(); MngMadrassa Mobj = new MngMadrassa(); Mmodel.BankDistrictList = Mobj.GetAllDistrics(); Mmodel.SectTypeDrp = Mobj.SectTypeDrp(0); return(View(Mmodel)); } } else { return(RedirectToAction("Index", "Login")); } }