public int Update(int ID, User user, int Myproperty, string StreetAddress, City city, State state, Country country) { return new AddressData().Update(new Address() { Id = ID, User = user, MyProperty = Myproperty, StreetAddress = StreetAddress, City = city, State = state, Country = country }); }
public int Update(int ID, int LocationID, string CongregationCenterName, CongregationCenterType CongregationCenterType, PrayerTiming PrayerTiming, Sect sect, PreachingType Preachingtype, Address Address, GPSLOC GPSLOC, int Street, City City, State State, Country Country) { return new CongregationData().Update(new Congregation() { ID = ID, LocationID = LocationID, CongregaionCenterName = CongregationCenterName, CongregationCenterType = CongregationCenterType, PrayerTiming = PrayerTiming, sect = sect, PreachingTiming = Preachingtype, Address = Address, GPSLOC = GPSLOC, Street = Street, City = City, State = State, Country = Country }); }
public int Update(Country country) { return base.ExecuteNonQuery(string.Format("EXEC Country_Update {0},'{1}' ", country.ID, country.CountryName)); }