public object Delete(Guid ID) { using (DynamicFormService dynamicFormService = new DynamicFormService()) { ResultOperation resultOperation = dynamicFormService.Delete(ID); if (resultOperation.IsSuccess) { return(new PostMethodMessage(SharedLang.Get("Success.Text"), DisplayMessageType.success)); } else { return(new PostMethodMessage(resultOperation.GetErrors(), DisplayMessageType.error)); } } }