public ActionResult Holiday_List() { List <MastersModel> hmlist = new List <MastersModel>(); try { dt = mdb_layer.HolidaySummary(); foreach (DataRow dr in dt.Rows) { MastersModel mm = new MastersModel(); mm.Holiday_Name = dr["holiday_name"].ToString(); mm.Show_HolidayDate = dr["holiday_date"].ToString(); mm.Holiday_Type = dr["holiday_type"].ToString(); mm.Show_Status = dr["holiday_Status"].ToString(); hmlist.Add(mm); } return(View(hmlist)); } catch (Exception ex) { } return(View()); }