Exemplo n.º 1
0
        public ActionResult MakeBloodBankMember(int Id)
        {
            GeneralViewModel gen = new GeneralViewModel();

            if (int.Parse(Session["UserTypeId"].ToString()) == 4 || int.Parse(Session["UserTypeId"].ToString()) == 1)
            {
                gen.MakeBloodBankMember(Id);
            }
            gen.Msg = "The User has been successfully made Blood Bank Member";
            if (Convert.ToInt32(System.Web.HttpContext.Current.Session["UserTypeId"]) == 1)
            {
                gen.getAllUserDetailsByUserTypeIdForADMIN(4);
            }
            else
            {
                gen.getAllUserDetailsByUserTypeId(4);
            }

            gen.UserTypeId    = 4;
            gen.UserTypeName  = "Blood Bank Member";
            gen.UserFieldName = "Blood Bank";
            return(View("UserDetails", gen));
        }