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));
            }
        }
Example #2
0
        public async Task <ActionResult> Clone(CloneViewModel model)
        {
            await _associationService.CloneAsync(model.PageAssociationId, model.PageId);

            return(Content("Refresh"));
        }