public async Task <IActionResult> UploadImage(IFormFile files) { ImageViewModel entity_data = new ImageViewModel(); try { string sub_key = _appSettings.Subscriptionkey; string api_url = _appSettings.VisionAPIURL; entity_data = await service.UploadImageAsync(files, sub_key, api_url); } catch (Exception ex) { ExceptionLog.ErrorLogging(ex); } return(View("UploadImage", entity_data)); }