title: how to handle ActionResult in custome class?
body: <p>i have a class (in project by mvc4 razor on .net 4.5) and want to handle a Redirecting method on it and do not want inherit from controller class.
   how can i handle this?it returns ActionResult to redirecting user in some cases like log outing</p>
  
  <p>my main class:</p>
  
  <pre><code>public class SecuritySrv 
  {
    public ActionResult Redirect()
      {
  
          return RedirectToAction("Logout", "Account", new { area = "" });
      }
  }
  </code></pre>
  
  <p>and i want to use it in some controllers  like below:</p>
  
  <pre><code> public ActionResult AccountHome()
      {
        SecuritySrv SecurityService =new SecuritySrv()
         if(.....)
        return SecurityService.Redirect();
  
  
       return view();
     }
  </code></pre>