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 RespBookingUser : RespCommon { public int Total { get; set; } public List Data { get; set; } } public class BookingUserViewModel { public string GID { get; set; } public string CLIENT_ID { get; set; } public string NAME { get; set; } public string TEL { get; set; } public string MOBILE { get; set; } public string EMAIL { get; set; } public string COMPANY_NAME { get; set; } public string COMPANY_CODE { get; set; } public string ADDRESS { get; set; } public string IDENTIFICATION_STATE { get; set; } public string REG_TIME { get; set; } public string REMARK { get; set; } public string STATUS { get; set; } public string INFO_CLIENT { get; set; } public string IDENTIFICATION_STATE_STR { get; set; } public string STATUS_STR { get; set; } } public static class BookingUserViewModelExt { public static BookingUserViewModel AsBookingViewModel(this BookingUser user) { return Mapper.Map(user); } public static List AsBookingViewModelList(this IEnumerable user) { return Mapper.Map>(user); } } }