Exemple #1
0
        public ActionResult CreateProfile(ViewerProfileEntity objNewViewerProfiles)
        {
            objNewViewerProfiles.UserName = Request.QueryString["username"];
            var IsAdded = ViewrProfilesBL.AddViewerProfileBL(objNewViewerProfiles);

            if (IsAdded)
            {
                string url = string.Format("/ViewerProfiles/ProfileDetails?username={0}", Request.QueryString["username"]);
                return(Redirect(url));
            }

            else
            {
                return(View(objNewViewerProfiles));
            }
        }