Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

AutoMapper and IFormFile

$
0
0

What is a good way to map a

public class House
{
    public string ImageUrl { get; set; }
}

with a

public class HouseModel
{
    public IFormFile ImageUrl { get; set ;}
}

using AutoMapper? Should I change the House public string ImageUrl to a public byte[] ImageUrl?

Thank you!!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>