FeedUpdate() public static method

public static FeedUpdate ( Feed feed ) : Feed
feed Feed
return Feed
Ejemplo 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);
        }