예제 #1
0
        public async Task <bool> AddNewActionAsync(string name, string type, DateTime dateFrom, DateTime dateTo, int fromRank, bool isOfficial)
        {
            bool        isAdded = false;
            ActionEvent item    = await ActionEvent.AddAsync(name, type, dateFrom, dateTo, fromRank, isOfficial);

            if (item != null)
            {
                PlaceIntoRelevantCollection(item);
                isAdded = true;
            }
            return(isAdded);
        }