Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

How to call another api controller

$
0
0

I have the following code and I am currently expericing - Controllers.BwicController' does not contain a definition for 'BwicController' and no extension method 'BwicController' accepting a first argument of type 'API_09Oct.Controllers.BwicController' could be found (are you missing a using directive or an assembly reference?) - error

 public class UserController : ApiController
    {
       public void Get()
        {
           if (User.IsInRole("admin"))
           {
               var result = new BwicController();
               result.BwicController();

            }
            
        }
    }

Please advice. 


Viewing all articles
Browse latest Browse all 4850


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>