Пример #1
0
 public static LoginDTO ConvertLoginToDTO(TTTV__Users obj)
 {
     LoginDTO objdto = new LoginDTO();
     objdto.Username = obj.Username;
     objdto.Password = obj.Password;
     objdto.ForgotPassAnswer = obj.ForgotPassAnswer;
     objdto.ForgotPassQuestion = obj.ForgotPassQuestion;
     objdto.Email = obj.Email;
     objdto.RoleId = obj.RoleId;
     return objdto;
 }
Пример #2
0
 public static TTTV__Users ConvertDTOToImage(LoginDTO obj)
 {
     TTTV__Users objdto = new TTTV__Users();
     objdto.Username = obj.Username;
     objdto.Password = obj.Password;
     objdto.ForgotPassAnswer = obj.ForgotPassAnswer;
     objdto.ForgotPassQuestion = obj.ForgotPassQuestion;
     objdto.Email = obj.Email;
     objdto.RoleId = obj.RoleId;
     return objdto;
 }