public int Update(PrayerTiming prayretiming) { return base.ExecuteNonQuery(string.Format("EXEC PrayerTiming_Update {0},'{1}',{2},{3},{4}",prayretiming.ID,prayretiming.prayertime,prayretiming.Prayer.ID,prayretiming.Congregation.ID,prayretiming.user.ID); }
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 }); }