Пример #1
0
        private async Task UpdateGroupLastActivityDate(int?groupId, Message message)
        {
            var group = await _context.Groups.FirstAsync(g => g.Id == groupId);

            group.LastActivityDate = message.Date;
            _context.Attach(group);
            _context.Entry(group).Property("LastActivityDate").IsModified = true;
        }