partial void DeleteAboutUs(AboutUs instance);
partial void UpdateAboutUs(AboutUs instance);
public void UpdateAboutUsImage(int aboutUsId, string imageUrl) { try { AboutUs au = new AboutUs(); using (VenturadaDataContext vdc = new VenturadaDataContext()) { au = vdc.AboutUs.Single(a => a.AboutUsId == aboutUsId); au.ImageUrl = imageUrl; vdc.SubmitChanges(); } } catch (Exception ex) { throw ex; } }
partial void InsertAboutUs(AboutUs instance);
public void UpdateAboutUs(AboutUsModel aum) { try { AboutUs au = new AboutUs(); using (VenturadaDataContext vdc = new VenturadaDataContext()) { au = vdc.AboutUs.Single(a => a.AboutUsId == aum.AboutUsId); au.AboutUsId = aum.AboutUsId; au.AboutUsParagraph = aum.AboutUsParagraph; au.AboutUsTitle = aum.AboutUsTitle; vdc.SubmitChanges(); } } catch (Exception ex) { throw ex; } }