예제 #1
0
        public ActionResult Create(MdlBankAccount objform)
        {
            MdlBankAccount model  = new MdlBankAccount();
            MngInfo        ObjApp = new MngInfo();

            if (sig != null)
            {
                try
                {
                    objform.EnteredByUser_ID = sig.UserID;
                    ObjApp.AddNewBankAcctofOrg(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"));
            }
        }