public bool Save() { var success = false; if (DniIsValid(this.DNI) && NameIsValid(this.Name)) { if (this.ID == Guid.Empty) { success = DBContext.AddStudent(this); } } return(success); }