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.
DS7/DSWeb/Areas/Dispatch/Models/DispInfoClientRegistViewMod...

38 lines
1.0 KiB
C#

using AutoMapper;
using DSWeb.Areas.Dispatch.DB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace DSWeb.Areas.Dispatch.Models
{
public class DispInfoClientRegistViewModel
{
public string Name { get; set; }
public string Tel { get; set; }
public string OpenId { get; set; }
public string CompanyName { get; set; }
public bool IsAudit { get; set; }
}
public static class InfoClientRegistExt
{
public static DispInfoClient AsDispInfoClientInfo(this DispInfoClientRegistViewModel model)
{
return Mapper.Map<DispInfoClient>(model);
}
public static DispInfoClient AsDispInfoClientInfo(this DispInfoClientRegistViewModel model, DispInfoClient dest)
{
return Mapper.Map(model, dest);
}
public static DispInfoClientRegistViewModel AsDispInfoClientRegistViewModel(this DispInfoClient model)
{
return Mapper.Map<DispInfoClientRegistViewModel>(model);
}
}
}