public bool DeleteVentilationSystem(System.Guid recordId)
        {
            VentilationMonitorModel record = _db.VentilationDetail.Where(x => x.RecordId == recordId).FirstOrDefault();

            record.IsActive = false;
            return(Save());
        }
 public bool CreateVentilationSystem(VentilationMonitorModel ventilationMonitor)
 {
     ventilationMonitor.RecordId    = new Guid();
     ventilationMonitor.CreatedDate = DateTime.Now;
     ventilationMonitor.IsActive    = true;
     _db.VentilationDetail.Add(ventilationMonitor);
     return(Save());
 }
 public bool UpdateVentilationSystem(VentilationMonitorModel ventilationMonitor)
 {
     _db.VentilationDetail.Update(ventilationMonitor);
     return(Save());
 }