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(user); } } }