public UserDTO(User UserBE) { this.ID = UserBE.ID; this.FirstName = UserBE.FirstName; this.LastName = UserBE.LastName; this.Email = UserBE.Email; this.BirthDate = UserBE.BirthDate; this.CityID = UserBE.CityID; this.Street = UserBE.Street; this.UserName = UserBE.UserName; this.Password = UserBE.Password; }
public User ConvertToBE() { User UserBE = new User(); // UserBE.ID = this.ID; UserBE.FirstName = this.FirstName; UserBE.LastName = this.LastName; UserBE.Email = this.Email; UserBE.BirthDate = this.BirthDate; UserBE.CityID = this.CityID; UserBE.Street = this.Street; UserBE.UserName = this.UserName; UserBE.Password = this.Password; return UserBE; }