public async Task <HttpStatusCodeResult> Clone(int pageAssociationId, int pageId)
        {
            try
            {
                await _associationService.CloneAsync(pageAssociationId, pageId);

                return(new HttpStatusCodeResult(HttpStatusCode.NoContent));
            }
            catch (Exception)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.InternalServerError));
            }
        }
Beispiel #2
0
        public async Task <ActionResult> Clone(CloneViewModel model)
        {
            await _associationService.CloneAsync(model.PageAssociationId, model.PageId);

            return(Content("Refresh"));
        }