Esempio n. 1
0
        private bool DeleteData(SampleEventMap map)
        {
            IVegSurveyProvider srvProv = VegetationManager.Instance.GetSurveyProvider(this.Context);

            if (srvProv != null && srvProv.CanDelete())
            {
                IEnumerable <VegSurvey> deploys = srvProv.GetForSampleEvent(map.SampleEventId);
                foreach (VegSurvey cur in deploys)
                {
                    srvProv.Delete(cur);
                }
                return(true);
            }
            return(false);
        }