public ActionResult Login(string authorName, string password) { NewsServiceClient ins = new NewsServiceClient(); Author author = ins.Login(authorName, password); if (author.authorId <= 0) { ViewBag.Message = "Userneme and password incorrect!!"; return(RedirectToAction("Login", "Author")); } Session["authorid"] = author.authorId; System.Diagnostics.Debug.WriteLine("AUTHOR ID ++++++++" + author.authorId); return(RedirectToAction("getAllNews", "News")); }