Esempio n. 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;
 }
Esempio n. 2
0
 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;
     }
 }