public T MapToTableModel <T>() where T : class { DataAccessLogic.tblUser user = new DataAccessLogic.tblUser(); user.ID = this.ID; user.Username = this.Username; user.Password = this.Password; return(user as T); }
public UserEntity(DataAccessLogic.tblUser tblUser) { this.ID = tblUser.ID; this.Username = tblUser.Username; this.Password = tblUser.Password; }