public bool RemovePreLicenseCheck(Guid appId) { var licCheck = _dataService.GetEntity <AppPreLicenseCheck>(p => p.AppId == appId).SingleOrDefault(); if (licCheck == null) { return(false); } _dataService.Remove(licCheck); if (licCheck.OldLimsId != null) { _limsExchangeService.DeletePreLicenseCheckIML(licCheck.OldLimsId.Value); // TODO: Сделать } _dataService.SaveChanges(); return(true); }