using BuddyFinance.Integration.Models; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Rendering; using System.Collections.Generic; namespace BuddyFinance.Admin.Areas.Admin.Models { public class AddressViewModel : Address { public IFormFile UploadFile { get; set; } public List ProvinceList { get; set; } public AddressViewModel() { } public AddressViewModel(Address m) { if (m != null) { AddressProfileId = m.AddressProfileId; AddressId = m.AddressId; Line1 = m.Line1; Line2 = m.Line2; City = m.City; PostalCode = m.PostalCode; ProvinceId = m.ProvinceId; Province = m.Province; //CountryId = m.CountryId; //Country = m.Country; AddressTypeId = m.AddressTypeId; AddressType = m.AddressType; } } } }