Exemplo n.º 1
0
        public virtual ActionResult Copy(CopyModel copyModel, string @return)
        {
            var data = new JsonResultData(ModelState);
            data.RunWithTry((resultData) =>
            {
                Manager.Copy(Repository, copyModel.UUID, copyModel.DestinationName);
                data.RedirectUrl = @return;
            });

            return Json(data);
        }
Exemplo n.º 2
0
 public virtual ActionResult CopyNameAvailabled(CopyModel copyModel)
 {
     return this.IsNameAvailable(copyModel.DestinationName, null);
 }