title: ApiController could not be found
body: <p>Based on this video <a href="https://www.youtube.com/watch?v=IVvJX4CoLUY" rel="nofollow noreferrer">https://www.youtube.com/watch?v=IVvJX4CoLUY</a> I have add the <strong><em>using System.Web; using System.Web.Http;</em></strong> but i still get the error state that apicontroller could no found, and so on, below picture is the error I face:</p>
  
  <p><a href="https://i.stack.imgur.com/rX0Hf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rX0Hf.jpg" alt="enter image description here"></a></p>
  
  <p>below is my code :</p>
  
  <pre><code>using System;
  using System.Linq;
  using System.Threading.Tasks;
  using System.Web;
  using System.Web.Http;
  using System.Collections.Generic;
  
  
  namespace UploadToServer.Server.Controllers
  {
  public class UploadsController : ApiController
  {
      [Route("api/Files/Upload")]
      public async Task&lt;string&gt; Post()
      {
          try
          {
              var httpRequest = HttpContext.Current.Request;
  
              if (httpRequest.Files.Count &gt; 0)
              {
                  foreach (string file in httpRequest.Files)
                  {
                      var postedFile = httpRequest.Files[file];
  
                      var fileName = postedFile.FileName.Split('\\').LastOrDefault().Split('/').LastOrDefault();
  
                      var filePath = HttpContext.Current.Server.MapPath("~/Uploads/" + fileName);
  
                      postedFile.SaveAs(filePath);
  
                      return "/Uploads/" + fileName;
                  }
              }
          }
          catch (Exception exception)
          {
              return exception.Message;
          }
  
          return "no files";
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Anyone can share me ideas? </p>