2024-06-20 22:32:22 +04:00
|
|
|
|
using Contracts.BindingModels;
|
|
|
|
|
using DataModels.Models;
|
|
|
|
|
using System;
|
2024-06-17 14:32:12 +04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Contracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class MediaFileViewModel
|
|
|
|
|
{
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
public string Location { get; set; } = string.Empty;
|
2024-06-20 22:32:22 +04:00
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
public Guid ProductId { get; set; }
|
|
|
|
|
public MediaFileBindingModel GetBindingModel()
|
|
|
|
|
{
|
|
|
|
|
return new MediaFileBindingModel
|
|
|
|
|
{
|
|
|
|
|
Id = Id,
|
|
|
|
|
Name = Name,
|
|
|
|
|
Location = Location,
|
|
|
|
|
ProductId = ProductId
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2024-06-17 14:32:12 +04:00
|
|
|
|
}
|