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/BookingJieFeng/Models/UserEditInfoViewModel.cs

28 lines
752 B
C#

3 years ago
using AutoMapper;
using BookingJieFeng.DB.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BookingJieFeng.Models
{
public class UserEditInfoViewModel
{
public string GID { 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 ADDRESS { get; set; }
}
public static class UserEditInfoViewModelExt
{
public static UserEditInfoViewModel AsUserEditInfoViewModel(this SysUser user)
{
return Mapper.Map<UserEditInfoViewModel>(user);
}
}
}