Example #1
0
        public ActionResult GalleryManagement()
        {
            List <Gallery> lmd = new List <Gallery>();
            DataSet        ds  = new DataSet();

            Connection.Connection con = new Connection.Connection();
            ds = con.GalleryManagementData();

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                lmd.Add(new Gallery
                {
                    Ga_Id          = Convert.ToInt32(dr["Ga_Id"]),
                    Ga_Title       = dr["Ga_Title"].ToString(),
                    Ga_Description = dr["Ga_Description"].ToString(),
                    Tmp_Ph_Path    = dr["Ph_Path"].ToString()
                });
            }
            return(View(lmd));
        }