public static OperationResult ForSuccess(Enums.OperationResultMessage operationResultMessage, MethodBase methodBase, object data = null) { return(new OperationResult { Id = (int)operationResultMessage, IsSuccess = true, Message = EnumDescription.GetFromValue(operationResultMessage), Data = data == null ? null : JsonConvert.SerializeObject(data), Method = methodBase == null ? null : $"{methodBase.ReflectedType.Name}.{methodBase.Name}" }); }