Esempio n. 1
0
        public bool CheckDuplicate(SourceViewModel sourceviewmodel)
        {
            try
            {
                SourceManager sourceManager = new SourceManager();

                var source = sourceManager.FindSourceName(sourceviewmodel.sourceDesc, sourceviewmodel.DAID);

                if (source != null && source.SourceID != sourceviewmodel.sourceID && source.SourceDesc.ToUpper() == sourceviewmodel.sourceDesc.ToUpper())
                {
                    return(true);
                }
                return(false);
            }
            catch (Exception)
            {
                throw;
            }
        }