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/InfoClientTruckViewModel.cs

29 lines
819 B
C#

3 years ago
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<InfoClientTruckViewModel>(model);
}
public static List<InfoClientTruckViewModel> AsInfoClientTruckViewModelList(this IEnumerable<InfoClient> list)
{
return Mapper.Map<List<InfoClientTruckViewModel>>(list);
}
}
}