upload photos and put it in database .net core mvc code example
Example: Store Images In SQL Server Using EF Core And ASP.NET Core
public class Image
{
public int Id { get; set; }
public string ImageTitle { get; set; }
public byte[] ImageData { get; set; }
}