Ejemplo n.º 1
0
        public ActionResult SaveRegistration(GeneralViewModel gvm)
        {
            int Res = 0;

            gvm.UserTypeId = 4;
            Res            = gvm.SaveRegistrationDetails();
            GeneralViewModel gvm2 = new GeneralViewModel();

            if (Res > 0)
            {
                gvm2.Msg = "Registration Done Successfully.After the Blood Bank Admin Authorisation you can login.Thank you for registering...";
                return(View("BloodBankMemberRegistration", gvm2));
            }
            else
            {
                gvm2.Msg = "Registration Can not be done.Some problem occurs.Please Try Later..";
                return(View("BloodBankMemberRegistration", gvm2));
            }
        }
Ejemplo n.º 2
0
        public ActionResult SaveRegistration(GeneralViewModel gvm)
        {
            int Res = 0;

            gvm.UserTypeId = 2;
            Res            = gvm.SaveRegistrationDetails();
            GeneralViewModel gvm2 = new GeneralViewModel();

            if (Res > 0)
            {
                gvm2.Msg = "Registration Done Successfully.Thanks for registering.You can login now...";
                return(View("GeneralRegistration", gvm2));
            }
            else
            {
                gvm2.Msg = "Registration Can not be done.Some problem occurs.Please Try Later..";
                return(View("GeneralRegistration", gvm2));
            }
        }