title: How to call controller action from different project which don't return view
body: <p>I have 2 projects MVCMembership and main web project which using membership and i need to get some date in controller which is in membership project from controller in my main web project.This is what i try:
  this is from my membership controller</p>
  
  <pre><code>public ViewResult Index(int? index)
      {
          if (Roles.IsUserInRole("Group Admin"))
          {
              string[] roles = Roles.GetRolesForUser();
  
              var GroupUsers = RedirectToAction("UsersInGroup", "Account", new { Area = "" });
  </code></pre>
  
  <p>and this is action in my web project controller:</p>
  
  <pre><code>public MembershipUserCollection UsersInGroup()
      {
          var groupResultSet = db.aspnet_UsersInGroups.Where(u =&gt; u.UserID == (Guid)Membership.GetUser().ProviderUserKey);
          var group = groupResultSet.Single().aspnet_Group;
          return group.Users;
      }
  </code></pre>
  
  <p>So this is not working because RedirectToAction returns RedirectToRouteResult.
  Is there some way to do this?</p>
  
  <p>To be more clear imagine you have 2 simple methods in one class</p>
  
  <pre><code>public somthing Method1()
  {
      //doing something
      //call some other method
      var parm = Method2();
      //doing something whit parm
      return somethingelse;
  }
  
  public something Method2()
  {
      //doing something
      return parm;
  }
  </code></pre>
  
  <p>and now put that in context from up.Is that possible to do it?</p>