public async void Post() { byte[] file = await Request.Content.ReadAsByteArrayAsync(); await FaceApi.MakeAnalysis(file); var response = Request.CreateResponse(System.Net.HttpStatusCode.Accepted); }
public async Task <ActionResult> FileUpload(Byte[] file) { if (file != null) { ViewBag.valores = await FaceApi.MakeAnalysis(file); return(View("ConsultarCara")); } else { return(View("Index")); } }