Beispiel #1
0
 private void CreateNews(int userId, int notifiableId)
 {
     if (!newsStorage.Exists(userId, notifiableId))
     {
         T news = CreateEmptyNews();
         news.UserId   = userId;
         news.EntityId = notifiableId;
         newsStorage.Add(news);
     }
 }
Beispiel #2
0
        public async Task <OperationResult> Add(NewsVM newsVM)
        {
            await _newsStorage.Add(newsVM);

            return(OperationResult.Success);
        }