AzureTicker.Worker.Model.Repositories.NotificationRepository.Update C# (CSharp) Метод

Update() публичный Метод

public Update ( Notification notification ) : void
notification AzureTicker.Worker.Model.TableStorage.Notification
Результат void
        public void Update(Notification notification)
        {
            context.UpdateObject(notification);
        }

Usage Example

 public string GetExistingUsername(string rowKey, string notificationUri)
 {
     string retVal = string.Empty;
     using (INotificationRepository rep = new NotificationRepository())
     {
         Notification notification = rep.GetByRowKey(rowKey);
         if (notification != null)
         {
             retVal = notification.UserName;
             notification.NotificationUri = notificationUri;
             notification.LastVerification = DateTime.UtcNow;
             rep.Update(notification);
             rep.SaveChanges();
         }
     }
     return retVal;
 }