Posting file from MVC to WEB API
<p>I have a thin ASP.NET MVC client and a WEB API back end. I need to receive excel file on MVC side and the send it to WEB API controller without any changes. How can I achieve it in most simple way?</p>

<pre><code>[HttpPost]
public ActionResult UploadExcelFile(HttpPostedFileBase file)
{
   //call web api here 
} 
</code></pre>

<p>Right now I'm thinking of creating an UploadFileRequest that will look like this:</p>

<pre><code>public class UploadFileRequest 
{
    public byte[] byteData { get; set; }
}
</code></pre>

<p>and pass file as byte array, however this looks extremely inefficient.</p>