public async Task <IActionResult> ImageEdit([FromForm] IFormFile file, [FromForm] ShopEditViewModel model) { if (file != null && file.Length > 0) { var imagePath = await ImageUploadHelper.ImageUpload(file, _env); ViewData["FileLocation"] = imagePath; model.image = imagePath; } model.statusList = GetShopStatus(); return(View("Views/Shop/ShopEditView.cshtml", model)); }