public ActionResult AllBlog() { if (Check()) { return(RedirectToAction("Index", "Login")); } BlogClient service = new BlogClient(); MyBlog[] arr = service.GetAllBlog(); return(View(arr)); }