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(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(model); } } }