Example #1
0
        public ActionResult claim(string id_authors = "", string auth_id = "")
        {
            M_Profile profile = new M_Profile();
            string    result  = profile.claimProfile(id_authors, auth_id);

            if (result == "success")
            {
                Response.Redirect("/c_profile/search?keyword=" + Session["username"]);
            }
            else
            {
                Response.Redirect("/c_profile/show?error=1");
            }
            return(View());
        }