You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using AutoMapper;
|
|
|
|
|
using BookingWeb.DB.Model;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
|
|
|
|
|
namespace BookingWeb.Models
|
|
|
|
|
{
|
|
|
|
|
public class TemplateSaveViewModel
|
|
|
|
|
{
|
|
|
|
|
public string NAME { get; set; }
|
|
|
|
|
public string CATE { get; set; }
|
|
|
|
|
public string CONTENT { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class TemplateSaveViewModelExt
|
|
|
|
|
{
|
|
|
|
|
public static TemplateSaveViewModel AsEditViewModel(this OP_TEMPLATE model)
|
|
|
|
|
{
|
|
|
|
|
return Mapper.Map<TemplateSaveViewModel>(model);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static OP_TEMPLATE AsModel(this TemplateSaveViewModel model)
|
|
|
|
|
{
|
|
|
|
|
return Mapper.Map<OP_TEMPLATE>(model);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|