public static bool AddDistrict(string dname) { List <Districts> lDist = DatabaseHandler.GetAllDistricts(); foreach (Districts d in lDist) { if (d.DistrictName == dname) { return(false); } } DatabaseHandler.AddDistrict(dname); return(true); }