public override void Delete(int universityId) { if (UniversityValidation.IsValidUniversityId(universityId)) { DataAccessProvider.ExecuteNonQuery($"DELETE Universities " + $"WHERE UniversityID = {universityId}"); } }
public override void Update(University university) { if (UniversityValidation.IsValidUniversity(university) && UniversityValidation.IsValidUniversityId(university.UniversityId)) { DataAccessProvider.ExecuteNonQuery($"UPDATE Universities " + $"SET UniversityName = \'{university.UniversityName}\' " + $"WHERE UniversityID = {university.UniversityId}"); } }