예제 #1
0
 public UserLoginViewModel(TaiKhoanViewModel TaiKhoanVm)
 {
     KeyId    = TaiKhoanVm.KeyId;
     UserID   = TaiKhoanVm.matk;
     Email    = TaiKhoanVm.email;
     UserName = TaiKhoanVm.hoten;
     Avatar   = TaiKhoanVm.avatar;
     UserType = TaiKhoanVm.UserType;
     Password = TaiKhoanVm.matkhau;
     Phone    = TaiKhoanVm.sdt;
     Address  = TaiKhoanVm.diachi;
 }
예제 #2
0
파일: GHViewModel.cs 프로젝트: haluha1/TMDT
 public GHViewModel(TaiKhoanViewModel taiKhoanVm)
 {
     KeyId      = taiKhoanVm.KeyId;
     CtGiohangs = taiKhoanVm.KhachhangNavigation.CtGiohangs;
     foreach (var i in CtGiohangs)
     {
         i.KhachhangNavigation                         = null;
         i.SanphamNavigation.CtGiohangs                = null;
         i.SanphamNavigation.Cthds                     = null;
         i.SanphamNavigation.KhachHangYeuThichs        = null;
         i.SanphamNavigation.LoaispNavigation.Sanphams = null;
         tenNcc = i.SanphamNavigation.NccNavigation.tenncc;
         i.SanphamNavigation.NccNavigation = null;
     }
 }