public bool RemovePreLicenseCheck(Guid appId) { var licCheck = _dataService.GetEntity <AppPreLicenseCheck>(p => p.AppId == appId).SingleOrDefault(); if (licCheck == null) { return(false); } _dataService.Remove(licCheck); //var prlApplication = _dataService.GetEntity<PrlApplication>(x => x.Id == appId).Single(); if (licCheck.OldLimsId != null) { _limsExchangeService.DeletePreLicenseCheck(licCheck.OldLimsId.Value); } _dataService.SaveChanges(); return(true); }