添加照片和模型
- 论坛
- 添加照片和模型
14 浏览
添加照片和模型
我是asp.net core的新手。在使用模型上传文件(图片)时遇到了问题。
视图模型:
namespace WebApplication1.ViewModels { public class HotelViewModel { public String NomHotel { get; set; } public String NomAgence { get; set; } public String Filepath{ get; set; } } }
这是cshtml:
@model WebApplication1.ViewModels.HotelViewModel