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.
24 lines
546 B
24 lines
546 B
using DTO;
|
|
using Model;
|
|
|
|
namespace ApiMappeur
|
|
{
|
|
public static class ImageMappeur
|
|
{
|
|
public static ImageDTO ToDTO(this LargeImage item)
|
|
{
|
|
if (item == null)
|
|
{
|
|
var message = string.Format("Image cannot be empty");
|
|
/*throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.NotFound, message));
|
|
*/
|
|
}
|
|
return new ImageDTO()
|
|
{
|
|
base64 = item?.Base64 ?? ""
|
|
};
|
|
}
|
|
|
|
}
|
|
}
|