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 InfoClientTruckViewModel { public string GID { get; set; } public string CODENAME { get; set; } public string SHORTNAME { get; set; } } public static class InfoClientTruckViewModelExt { public static InfoClientTruckViewModel AsInfoClientTruckViewModel(this InfoClient model) { return Mapper.Map(model); } public static List AsInfoClientTruckViewModelList(this IEnumerable list) { return Mapper.Map>(list); } } }