public void RemoveSchoolData(int ClientId) { PictureRepository picrep = new PictureRepository(); picrep.RemoveSchoolPictures(ClientId); NotificationsRepository nrep = new NotificationsRepository(); nrep.RemoveSchoolNotificationss(ClientId); EventRepository erep = new EventRepository(); erep.RemoveSchoolEvents(ClientId); AdvertisementRepository arep = new AdvertisementRepository(); arep.RemoveClientAdvertisement(ClientId); NewsRepository nerep = new NewsRepository(); nerep.RemoveSchoolNewss(ClientId); ContactRepository crep = new ContactRepository(); crep.RemoveSchoolContacts(ClientId); }
public ActionResult _UpdateContact(Contact ins) { ContactRepository conRep = new ContactRepository(); ins.ClientId = Convert.ToInt32(HttpContext.Session["ClientId"]); Contact ins2 = conRep.UpdateContact(ins); //...Notify... string regIds = AppRep.GetAllRegIds(ins.ClientId); if (!regIds.Equals("")) { comrep.NewUpdateData(regIds, "CMD_EDITCONTACT", ins2.ContactId.ToString()); } //...Repopulate Grid... List<Contact> lst = new List<Contact>(); lst = conRep.GetListContact(Convert.ToInt32(HttpContext.Session["ClientId"])); return View(new GridModel(lst)); }