FeedInsert() public static method

public static FeedInsert ( Feed feed ) : Feed
feed Feed
return Feed
Exemplo n.º 1
0
        public static Feed FeedSave(Feed feed)
        {
            if (!feed.IsValid)
            {
                return(feed);
            }

            Feed result;

            if (feed.IsNew)
            {
                result = FeedRepository.FeedInsert(feed);
            }
            else
            {
                result = FeedRepository.FeedUpdate(feed);
            }

            return(result);
        }