public ActionResult Edit(int id) { string role = new Business.AccountBusiness().currentMember(); if (role == "U" || role == "A") { return(RedirectToAction("Login", "Account")); } var announcement = webApi.GetAnnouncementById(id); return(View(announcement)); }