Example #1
0
        public ActionResult ImageCropper(ImageViewModel model)
        {
            GetCommand<CropImageCommand>().Execute(model);
            var result = GetCommand<GetImageCommand>().Execute(model.Id.ToGuidOrDefault());

            return Json(new WireJson { Success = true, Data = result });
        }
Example #2
0
        public ActionResult ImageEditor(ImageViewModel model)
        {
            if (GetCommand<SaveImageDataCommand>().ExecuteCommand(model))
            {
                var result = GetCommand<GetImageCommand>().ExecuteCommand(model.Id.ToGuidOrDefault());
                return Json(new WireJson { Success = result != null, Data = result });
            }

            return Json(new WireJson { Success = false });
        }
Example #3
0
        public ActionResult ImageEditor(ImageViewModel model)
        {
            if (GetCommand<SaveImageDataCommand>().ExecuteCommand(model))
            {
                var result = GetCommand<GetImageCommand>().ExecuteCommand(model.Id.ToGuidOrDefault());
                result.ThumbnailUrl += string.Format("?{0}", DateTime.Now.ToString(MediaManagerModuleDescriptor.HardLoadImageDateTimeFormat));
                return Json(new WireJson { Success = result != null, Data = result });
            }

            return Json(new WireJson { Success = false });
        }