コード例 #1
0
 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"));
     }
 }
コード例 #2
0
        // 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"));
            }
        }