public int CreateUpdateCheckListDataMapping(string WardID, string UserID, List <CheckListWardMapping> data) { DataTable DT = new DataTable(); DT.Columns.Add("CheckListMapID", typeof(int)); DT.Columns.Add("CheckListItemId", typeof(int)); DT.Columns.Add("Isdeleted", typeof(int)); DT.Columns.Add("orderNo", typeof(int)); foreach (CheckListWardMapping dat in data) { DT.Rows.Add(dat.CheckListMapID, dat.CheckListItemID, dat.Isdeleted, dat.orderNo); } return(adminDL.CreateUpdateCheckListDataMapping(WardID, UserID, DT)); }