SourceInsert() private static method

private static SourceInsert ( Source source ) : Source
source Source
return Source
Exemplo n.º 1
0
        public static Source SourceSave(Source source)
        {
            if (!source.IsValid)
            {
                return(source);
            }

            Source result;

            if (source.IsNew)
            {
                result = SourceRepository.SourceInsert(source);
            }
            else
            {
                result = SourceRepository.SourceUpdate(source);
            }

            return(result);
        }