示例#1
0
        /// <summary>
        /// Update notification type
        /// </summary>
        /// <param name="domain"></param>
        public void Update(NotificationTypeDomain domain)
        {
            NotificationType notificationType = _context.NotificationType.FirstOrDefault(x => x.NotificationTypeId == domain.Id);

            notificationType.FromDomainModel(domain);
            _context.SaveChanges();
        }