Example #1
0
        public ActionResult MakeHospitalMember(int Id)
        {
            GeneralViewModel gen = new GeneralViewModel();

            if (int.Parse(Session["UserTypeId"].ToString()) == 3 || int.Parse(Session["UserTypeId"].ToString()) == 1)
            {
                gen.MakeHospitalMember(Id);
            }
            gen.Msg = "The User has been successfully made Hospital Member";
            if (Convert.ToInt32(System.Web.HttpContext.Current.Session["UserTypeId"]) == 1)
            {
                gen.getAllUserDetailsByUserTypeIdForADMIN(3);
            }
            else
            {
                gen.getAllUserDetailsByUserTypeId(3);
            }
            gen.UserTypeId    = 3;
            gen.UserTypeName  = "Hospital Member";
            gen.UserFieldName = "Hospital";
            return(View("UserDetails", gen));
        }