Exemplo n.º 1
0
        public ActionResult Edit(Guid id, BlobUpdateDescriptionModel model)
        {
            if (!this.ModelState.IsValid)
            {
                return(this.View(model));
            }

            this.blobService.UpdateDescription(id, model.Name, model.Description);
            return(RedirectToAction("Details", new { id = id }));
        }
Exemplo n.º 2
0
        public ActionResult Edit(Guid id)
        {
            var blob  = this.blobService.GetBlobById(id);
            var model = new BlobUpdateDescriptionModel()
            {
                Id           = blob.BlobId,
                Name         = blob.Name,
                OriginalName = blob.Name,
                Description  = blob.Description
            };

            return(this.View(model));
        }