public static dynamic Delete(int PortalID, string GUID) { dynamic Result = new ExpandoObject(); try { BlockFactory.Delete(PortalID, GUID); Result.Status = "Success"; } catch (Exception ex) { Result.Status = ex.Message.ToString(); DotNetNuke.Services.Exceptions.Exceptions.LogException(ex); } return(Result); }