Beispiel #1
0
        public ActionResult Source()
        {
            List <Source> CategoryList = new List <Source>();
            Property      p            = new Property();
            DataSet       ds           = new DataSet();

            p.OnTable = "FetchSource";

            ds = dl.FetchFrontSource_sp(p);

            try
            {
                foreach (DataRow item in ds.Tables[0].Rows)
                {
                    Source m = new Source();

                    m.SId         = item["SId"].ToString();
                    m.SName       = item["SName"].ToString();
                    m.AddedBy     = item["AddedBy"].ToString();
                    m.Description = item["Description"].ToString();
                    m.IsActive    = item["IsActive"].ToString();
                    CategoryList.Add(m);
                }
                ViewBag.CategoryList = CategoryList;
            }
            catch (Exception e)
            {
            }
            return(View());
        }