You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
685 B
29 lines
685 B
using Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EntityFrameworkLib.Mappers
|
|
{
|
|
public static class LargeImageChanger
|
|
{
|
|
public static int Id { get; private set; }
|
|
|
|
public static LargeImage toModel(this LargeImageEntity imageEntity)
|
|
{
|
|
return new LargeImage(imageEntity.Base64) { Id = imageEntity.Id };
|
|
}
|
|
|
|
public static LargeImageEntity toEntity(this LargeImage image)
|
|
{
|
|
return new LargeImageEntity
|
|
{
|
|
Id = image.Id,
|
|
Base64 = image.Base64
|
|
};
|
|
}
|
|
}
|
|
}
|