Example #1
0
        public ActionResult Project_List()
        {
            List <MastersModel> Projectlist = new List <MastersModel>();

            try
            {
                dt = mdb_layer.ProjectSummary();
                foreach (DataRow dr in dt.Rows)
                {
                    MastersModel mm = new MastersModel();
                    mm.Project_Name = dr["project_name"].ToString();
                    mm.Project_Code = dr["project_code"].ToString();
                    mm.Project_Desc = dr["project_desc"].ToString();
                    mm.Show_Status  = dr["Status"].ToString();
                    Projectlist.Add(mm);
                }
                return(View(Projectlist));
            }
            catch (Exception ex)
            {
            }
            return(View());
        }