示例#1
0
        public void Save(IAnalysis analysis, out bool success)
        {
            Checks.Argument.IsNotNull(analysis, "myShow");

            success = false;

            if (null == _repo.FindById(analysis.AnalysisId).SingleOrDefault())
            {
                try
                {
                    _repo.Add(analysis);
                    success = true;
                }
                catch (Exception ex)
                {
                    success = false;
                }
            }
        }