示例#1
0
        public ActionResult Notifications(Guid id, BlobSetNotificationViewModel model)
        {
            if (!this.ModelState.IsValid)
            {
                return View(model);
            }

            var blobsetUri = this.GetBlobsetUri();
            var changesNotificationService = new ChangesNotificationService();
            changesNotificationService.NotifyBlobsetUsers(id, blobsetUri, model.Subject, model.Message, false);

            return RedirectToAction("Details", new { id = id });
        }
示例#2
0
        public ActionResult Notifications(Guid id)
        {
            var blobSet = this.blobSetService.GetBlobSetById(id);

            var model = new BlobSetNotificationViewModel();
            model.BlobSetId = blobSet.BlobSetId;
            model.Name = blobSet.Name;
            model.Subject = string.Format("Blob Share - Notifications - {0} blob set has changed", blobSet.Name);
            model.Message = string.Empty;

            return View(model);
        }