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.

49 lines
1.5 KiB
C#

10 months 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 RespBookingUser : RespCommon
{
public int Total { get; set; }
public List<BookingUserViewModel> 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<BookingUserViewModel>(user);
}
public static List<BookingUserViewModel> AsBookingViewModelList(this IEnumerable<BookingUser> user)
{
return Mapper.Map<List<BookingUserViewModel>>(user);
}
}
}