public static tbRPT_OfflineSites AddRow(string org, DateTime auditCreatedOn, string supplier = "test", string healthboard="test", DateTime? dateOfflineNotificationSent=null, DateTime? auditUpdatedOn=null) { tbRPT_OfflineSites row = new tbRPT_OfflineSites { Org = org, Supplier = supplier, Healthboard = healthboard, DateOfflineNotificationSent = dateOfflineNotificationSent, AuditCreatedOn = auditCreatedOn, AuditUpdatedOn = auditUpdatedOn }; return row; }
// TODO: Create public method for this private tbRPT_OfflineSites getOfflineSiteDetails(string offlineSite) { var site = (from x in _reportingEntity.tbEPS_Organisation where x.id == offlineSite select x).FirstOrDefault(); if (site != null) { tbRPT_OfflineSites siteDetails = new tbRPT_OfflineSites(); siteDetails.Org = site.id; siteDetails.Healthboard = site.healthBoardName; siteDetails.Supplier = site.supplier; siteDetails.AuditCreatedOn = DateTime.Now; return siteDetails; } return null; }