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 }); }
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 }); }
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 }); }