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