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.

28 lines
744 B
C#

11 months ago
using AutoMapper;
using BookingWeb.DB.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BookingWeb.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);
}
}
}