public IEnumerable <AboutUs> GetAboutUs() { List <AboutUs> aboutus = new List <AboutUs>(); DataTable dt = new DataTable(); AboutUsData aboutUsData = new AboutUsData(); try { dt = aboutUsData.GetAboutUs(); if (dt.Rows.Count > 0) { aboutus = this.MapAboutUs(dt); } } catch (Exception ex) { throw ex; } return(aboutus); }
public AboutUsViewModel() { _aboutUsData = new AboutUsData(); AboutUsCollection = _aboutUsData.GetAboutUs(); }