PhoneToolMX/PhoneToolMX.Models/ViewModels/IViewModel.cs

16 lines
365 B
C#
Raw Normal View History

2023-10-18 04:55:10 +00:00
using PhoneToolMX.Data;
using PhoneToolMX.Models;
namespace PhoneToolMX.Models.ViewModels
{
public interface IViewModel
{
public int? Id { get; set; }
public IOwnedModel ToEntity(PTMXContext ctx);
public IOwnedModel ToEntity(PTMXContext ctx, IOwnedModel current);
public IViewModel FromEntity(IOwnedModel entity);
}
}