16 lines
365 B
C#
16 lines
365 B
C#
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);
|
|
}
|
|
}
|